# HG changeset patch # User Mychaela Falconia # Date 1726245391 0 # Node ID b15dfdc62ceb9cd9355100d685199ab294f7045e # Parent 95acde708ce2ab246c75942e6cfb04dffdd35c51 trau-sync8: off-by-one error in file end limit diff -r 95acde708ce2 -r b15dfdc62ceb trau-decode/trau-sync8.c --- a/trau-decode/trau-sync8.c Thu Sep 12 23:59:16 2024 +0000 +++ b/trau-decode/trau-sync8.c Fri Sep 13 16:36:31 2024 +0000 @@ -117,7 +117,7 @@ int sync = 0, match; endp = total_size - 160; - for (p = 0; p < endp; ) { + for (p = 0; p <= endp; ) { match = check_sync(p); if (match != sync) { printf("# %s frame sync at file offset 0x%x\n",