vcl/workben/svmfuzzer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit ad982bc87f96c31af6fa3e81d33af29b991199ce Author: panoskorovesis <[email protected]> AuthorDate: Wed Aug 4 11:24:31 2021 +0300 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Sat Aug 7 00:58:53 2021 +0200 Replace ReadGDIMetaFile with SvmReader::Read in svmfuzzer.cxx Use the new read functionality in vcl/workben/svmfuzzer.cxx Change-Id: Id8cc57bda70109f2ddbf81354f8d37d187f0f8d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120106 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <[email protected]> diff --git a/vcl/workben/svmfuzzer.cxx b/vcl/workben/svmfuzzer.cxx index 5ef7366c1889..890946eecd41 100644 --- a/vcl/workben/svmfuzzer.cxx +++ b/vcl/workben/svmfuzzer.cxx @@ -9,6 +9,7 @@ #include <tools/stream.hxx> #include <vcl/gdimtf.hxx> +#include <vcl/filter/SvmReader.hxx> #include "commonfuzzer.hxx" #include <config_features.h> @@ -49,7 +50,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { SvMemoryStream aStream(const_cast<uint8_t*>(data), size, StreamMode::READ); GDIMetaFile aGDIMetaFile; - ReadGDIMetaFile(aStream, aGDIMetaFile); + SvmReader aReader(aStream); + aReader.Read(aGDIMetaFile); return 0; }
