diff --git a/README.md b/README.md index 45edc38..ed536cb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -edccchk v1.20 +edccchk v1.25 ============= EDC/ECC checker for RAW (2352 bytes/sector) CD images @@ -44,6 +44,9 @@ Changelog * Shows a warning when mode 2 subheader copies differ. Other tools detect this as an error, but if both ECC and EDC are ok it's intentional. * Shows summary of total warnings and total errors+warnings. +2014/03/15 v1.25 +* Corrected mishandling of end of data. It was checking for a sector on what should be uninitialized memory instead of breaking main loop. + To-Do ===== diff --git a/edccchk.c b/edccchk.c index 16d8004..671af21 100644 --- a/edccchk.c +++ b/edccchk.c @@ -304,8 +304,6 @@ static int8_t ecmify( DPRINTF("ecmify(): Entering main loop.\n"); for(;;) { - int8_t detecttype = 0; - // // Refill queue if necessary // @@ -354,8 +352,7 @@ static int8_t ecmify( // // No data left to read -> quit // - detecttype = -1; - + break; } uint8_t* sector = queue + queue_start_ofs; @@ -489,12 +486,6 @@ static int8_t ecmify( nondatasectors++; } - - // - // Current type is negative ==> quit - // - if(detecttype < 0) { break; } - // // Advance to the next sector // diff --git a/version.h b/version.h index 9d0e0ca..b4dafcb 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -"v1.20" +"v1.25"