diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-05-11 21:09:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-05-11 22:16:26 +0200 |
commit | 279b21da6a4586915f889a4a835b252dae64b758 (patch) | |
tree | e4baa995b69afd9e2f6942942936315186959d55 /vcl | |
parent | 85ccfd86e1bc3bbe2a9957cf3df069e2f7e85071 (diff) |
libxml2's fuzzers call xmlResetLastError so do that too
Change-Id: I6a422be17569340865d8799a74dbc5a9867b7562
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151683
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/workben/fodt2pdffuzzer.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/workben/fodt2pdffuzzer.cxx b/vcl/workben/fodt2pdffuzzer.cxx index e4bb1ac3c0da..6d255cd2564a 100644 --- a/vcl/workben/fodt2pdffuzzer.cxx +++ b/vcl/workben/fodt2pdffuzzer.cxx @@ -72,6 +72,7 @@ extern "C" size_t LLVMFuzzerCustomMutator(uint8_t* Data, size_t Size, size_t Max else xmlFreeDoc(Doc); xmlFreeParserCtxt(ctxt); + xmlResetLastError(); return Ret; } |