Skip to content

Commit

Permalink
ITS: Fix for verification of TrailerAfterHeader error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Naumov authored and shahor02 committed Jul 23, 2024
1 parent 3e8ac60 commit aa2411a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,9 @@ class AlpideCoder
if (isChipHeader(dataRaw) && isChipEmpty(dataRec)) {
// This error can be verified by skipping a bunch counter byte and
// checking that the following byte corresponds to the chip trailer
buffer.next(dataRaw);
buffer.next(dataRaw);
buffer.next(dataRaw); // Skipping chip header
buffer.next(dataRaw); // Skipping bunch counter
buffer.current(dataRaw);
if (isChipTrailer(dataRaw)) {
res = VerifierMismatchResult::EXPECTED_MISMATCH;
}
Expand Down

0 comments on commit aa2411a

Please sign in to comment.