Skip to content

Commit 7eeceb5

Browse files
committed
Fix bug with wraparound detection when the duplicate ID block gets
cut off by the DMK buffer filling up. The fix is to stop decoding when the buffer fills up, so that we don't detect such a header in the first place.
1 parent 88ba62b commit 7eeceb5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* Fix bug with wraparound detection when the duplicate ID block gets
2+
cut off by the DMK buffer filling up. The fix is to stop decoding
3+
when the buffer fills up, so that we don't detect such a header in
4+
the first place.
5+
16
4.10.0 -- Mon Mar 11 19:30:33 UTC 2024 -- Tim Mann, Quentin Barnes
27

38
* Add -S option. This option allows the user to specify a minimum

cw2dmk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ process_bit(int bit)
852852
unsigned char val = 0;
853853
int i;
854854

855+
if (dmk_full) return;
855856
accum = (accum << 1) + bit;
856857
taccum = (taccum << 1) + bit;
857858
bits++;

0 commit comments

Comments
 (0)