oss-fuzz/projects/flac
Martijn van Beurden afdf1caa5d
flac: only disable signed integer sanitizing on decoder fuzzers (#7687)
oss-fuzz has reported numerous signed integer overflow problems
in flac that cannot be reasonably fixed. The problem is that
flac uses some math that is numerically unstable when fed with
random data, and as these are only audio samples, this overflow
is not a problem. Therefore, I added
`__attribute__((no_sanitize("signed-integer-overflow")))` to a few
functions in the flac sources.

However, while a decoder fed with random data has this problem,
an decoder that is being used to verify an encoder fed with random
data should never overflow. As the same functions are used, the
flac sources should be compiled twice: once with the mentioned
attributes for the decoder fuzzers, and once without them for the
encoder fuzzers.

Note that the define passed in this code is not yet integrated in
libflac, but this change should happen first or else the old
bugs appear again
2022-05-09 16:39:59 -04:00
..
Dockerfile Move fuzzer sources from guidovranken/flac-fuzzers to xiph/flac (#7624) 2022-04-25 21:15:36 +01:00
build.sh flac: only disable signed integer sanitizing on decoder fuzzers (#7687) 2022-05-09 16:39:59 -04:00
fuzzer_exo.cpp Fix infinite loop in fuzzer_exo (#7265) 2022-02-11 19:08:42 +00:00
project.yaml Add CC to flac (#7254) 2022-02-10 10:47:56 +00:00