diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-01 12:29:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-01 13:38:19 +0200 |
commit | 5f762b34bb1f93aeb409060d74b8e38ab75a8732 (patch) | |
tree | e611024cdf56824f06558e53fe146bde88bad638 | |
parent | e8d93ae128f7947e64eb8c849b4af9c54c9dd7a5 (diff) |
ReleaseSolarMutex before possible afl fork
Change-Id: I2b5dfed215cb07454319b7e20068cbc8fba39c75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113450
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/workben/commonfuzzer.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx index aa544e394549..6a5aa079a2a3 100644 --- a/vcl/workben/commonfuzzer.hxx +++ b/vcl/workben/commonfuzzer.hxx @@ -128,6 +128,14 @@ void CommonInitialize(int *argc, char ***argv) psp::PrintFontManager::get(); //get the printer info Printer::GetPrinterQueues(); + + //https://github.com/google/oss-fuzz/issues/1449 + //https://github.com/google/oss-fuzz/issues/5441 + //release the solarmutex so a fork can acquire it which should + //allow these fuzzers to work without AFL_DRIVER_DONT_DEFER set + //removing the confusion of #5441 and the need for AFL_DRIVER_DONT_DEFER + //in .options files + Application::ReleaseSolarMutex(); } void TypicalFuzzerInitialize(int *argc, char ***argv) |