mirror of https://github.com/google/oss-fuzz.git
aa9cd06607
AddressSanitizer/LeakSanitizer has begun to report partial leaks due to the library being initialized but never finalized. It's not clear why only part of the memory is reported and why this hasn't happened before now, but this is a somewhat legitimate report, so add finalization calls to release all memory. The libFuzzer API provides no shutdown cleanup hook, so use a static variable with a C++ destructor. Fixes https://github.com/google/oss-fuzz/issues/6440. Add the required copyright header while we are at it. This code appeared in https://github.com/google/oss-fuzz/pull/34 together with all the other files that do have the copyright header, and this license seems to have been already required at the time, so this should not constitute a licensing change. |
||
---|---|---|
.. | ||
Dockerfile | ||
ass.dict | ||
build.sh | ||
libass_fuzzer.cc | ||
libass_fuzzer.options | ||
project.yaml |