oss-fuzz/projects/libass
Oleg Oshmyan aa9cd06607
libass: release library memory on shutdown (#6469)
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.
2021-09-17 15:24:26 +01:00
..
Dockerfile libass: fix build, upgrade Ubuntu, update contacts (#6423) 2021-09-12 01:19:47 +01:00
ass.dict
build.sh libass: fix build, upgrade Ubuntu, update contacts (#6423) 2021-09-12 01:19:47 +01:00
libass_fuzzer.cc libass: release library memory on shutdown (#6469) 2021-09-17 15:24:26 +01:00
libass_fuzzer.options
project.yaml libass: fix build, upgrade Ubuntu, update contacts (#6423) 2021-09-12 01:19:47 +01:00