diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-08-04 11:24:31 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-08-07 00:58:53 +0200 |
commit | ad982bc87f96c31af6fa3e81d33af29b991199ce (patch) | |
tree | 201bcfedbf4cd7e4f92c6bdffa8bfca4b52b7e56 /vcl | |
parent | 46131c5f8238bc3dca9a8d4eb097ad07f2d46fe0 (diff) |
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 <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/workben/svmfuzzer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |