Skip to content

Commit

Permalink
Merge pull request #818 from easyaspi314/fix-816
Browse files Browse the repository at this point in the history
Fix off-by-one in XXH3_consumeStripes() (Fixes #816)
  • Loading branch information
Cyan4973 authored Mar 9, 2023
2 parents a568bee + 65094db commit 5b2032f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -5476,7 +5476,7 @@ XXH3_consumeStripes(xxh_u64* XXH_RESTRICT acc,
/* Then continue the loop with the full block size */
nbStripesThisIter = nbStripesPerBlock;
initialSecret = secret;
} while (nbStripes > nbStripesPerBlock);
} while (nbStripes >= nbStripesPerBlock);
*nbStripesSoFarPtr = 0;
}
/* Process a partial block */
Expand Down

0 comments on commit 5b2032f

Please sign in to comment.