changeset 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 95acde708ce2
children 59d1d15b6f7e
files trau-decode/trau-sync8.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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",