FreeCalypso > hg > gsm-net-reveng
diff trau-decode/trau-sync8.c @ 44:b15dfdc62ceb
trau-sync8: off-by-one error in file end limit
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 13 Sep 2024 16:36:31 +0000 |
parents | f508dacf2cf9 |
children |
line wrap: on
line diff
--- 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",