Skip to content

Commit

Permalink
Fix bug with wraparound detection when the duplicate ID block gets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TimothyPMann committed Apr 1, 2024
1 parent 88ba62b commit 7eeceb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* 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.

4.10.0 -- Mon Mar 11 19:30:33 UTC 2024 -- Tim Mann, Quentin Barnes

* Add -S option. This option allows the user to specify a minimum
Expand Down
1 change: 1 addition & 0 deletions cw2dmk.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ process_bit(int bit)
unsigned char val = 0;
int i;

if (dmk_full) return;
accum = (accum << 1) + bit;
taccum = (taccum << 1) + bit;
bits++;
Expand Down

0 comments on commit 7eeceb5

Please sign in to comment.