diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-26 14:27:16 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-27 12:41:10 +0200 |
commit | 959f22c4e41c42851c2dde3884cf24da4b9eb606 (patch) | |
tree | a48242f55f20c4f158ebe5083974315e951fb140 /package | |
parent | a4901e73b7ec1acab95fec7a04b688368786a234 (diff) |
skip checking zip crcs when fuzzing
Change-Id: If90828e508178dfaaee51f88cf52ada0aec5970c
Reviewed-on: https://gerrit.libreoffice.org/58120
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/Library_package2.mk | 3 | ||||
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.cxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/package/Library_package2.mk b/package/Library_package2.mk index 0ff715e031c1..75a15f0e0d08 100644 --- a/package/Library_package2.mk +++ b/package/Library_package2.mk @@ -30,8 +30,9 @@ $(eval $(call gb_Library_use_libraries,package2,\ cppuhelper \ sal \ sax \ - ucbhelper \ salhelper \ + ucbhelper \ + utl \ )) $(eval $(call gb_Library_use_externals,package2,\ diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx index 0aedfac09402..9925d1d5dd5c 100644 --- a/package/source/zipapi/XUnbufferedStream.cxx +++ b/package/source/zipapi/XUnbufferedStream.cxx @@ -32,6 +32,8 @@ #include <osl/diagnose.h> #include <osl/mutex.hxx> +#include <unotools/configmgr.hxx> + using namespace ::com::sun::star; using namespace com::sun::star::packages::zip::ZipConstants; using namespace com::sun::star::io; @@ -61,7 +63,7 @@ XUnbufferedStream::XUnbufferedStream( , mnZipEnd ( 0 ) , mnZipSize ( 0 ) , mnMyCurrent ( 0 ) -, mbCheckCRC( !bRecoveryMode ) +, mbCheckCRC(!bRecoveryMode && !utl::ConfigManager::IsFuzzing()) { mnZipCurrent = maEntry.nOffset; if ( mbRawStream ) |