[Libreoffice-commits] core.git: vcl/workben

panoskorovesis (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 6 22:59:27 UTC 2021


 vcl/workben/svmfuzzer.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ad982bc87f96c31af6fa3e81d33af29b991199ce
Author:     panoskorovesis <panoskorovesis at outlook.com>
AuthorDate: Wed Aug 4 11:24:31 2021 +0300
Commit:     Tomaž Vajngerl <quikee at gmail.com>
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 <quikee at gmail.com>

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;
 }
 


More information about the Libreoffice-commits mailing list