Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std/jpeg: halve maximum scan count from 64 to 32
cjpeg defaults to using 1 (sequential) or 10 (progressive) scans. 32 is still easily more than what's seen in practice. The previous commit (f9c384d std/jpeg: add "expect multiple scans" check) makes Wuffs more closely match libjpeg. Without that commit, though, this commit halves the time taken to decode the oss-fuzz test case (linked below) from 6 to 3 seconds, in an optimized build. For the debug-sanitizer fuzzer build, without this commit, that test case times out after 60 seconds but this commit should halve the time taken. Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70340
- Loading branch information