Commit 74797a0
authored
Fix decoding issue after buffer overflow. (#253)
The bug was tickled when the capture buffer overflowed.
Though, it probably also manifests when are large or garbage message is
captured, and writes data through out the buffer.
When a smaller message comes in, the last entry which is typically the
post message gap, is not cleared. This could caused the decoder(s) to get
confused as they would be reading previous messages (or garbage) data.
- Fixes Issue #246
- No unit tests for this bug is only tickled 'on device' due to interrupt
handling. Our unit tests don't really cover that aspect.1 parent 57a4ef0 commit 74797a0
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
| |||
0 commit comments