Buiilding LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

classic Classic list List threaded Threaded
4 messages Options
Дилян Палаузов Дилян Палаузов
Reply | Threaded
Open this post in threaded view
|

Buiilding LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

Hello,

libjpeg.so can originate from

libjpeg-turbo, https://en.wikipedia.org/wiki/Libjpeg#libjpeg-turbo
mozjpeg, https://en.wikipedia.org/wiki/Libjpeg#mozjpeg or
ijg.org (jpeg-9c)

With ./configure --with-system-jpeg, having installed jpeg-9c as /usr/local/lib/libjpeg.so, make fails with

Test name: VclFiltersTest::testCVEs
equality assertion failed
- Expected: 0
- Actual  : 1
- file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg



Below is the full output of make.  The complete call for configuration is: ../configure --enable-evolution2 --enable-
avahi --enable-python=system --enable-eot --enable-online-update --without-doxygen --with-jdk-home=/opt/jdk --with-ant-
home=/opt/ant --without-junit --enable-formula-logger --enable-introspection --with-system-bzip2 --with-system-cairo --
with-system-epoxy --with-system-zlib --with-system-jpeg --with-system-expat --with-system-libxml --with-system-icu --
with-system-openldap --without-system-poppler --with-system-curl --with-system-boost --with-webdav --with-krb5 --with-
gssapi --with-system-lcms2 --with-system-nss --with-system-graphite --with-system-harfbuzz --with-system-cppunit --with-
system-openssl --with-system-libpng --disable-gtk --disable-pdfium --with-system-libcmis

I tried with or without --with-system-jpeg and it fails only in the latter case.

What exactly is the problem?

Regards
  Дилян
---------

mkdir -p /src/libreoffice-6.1.4.2/build9/instdir
/src/libreoffice-6.1.4.2/solenv/bin/install-gdb-printers -a /src/libreoffice-6.1.4.2/build9/instdir -c
make -j 1  VERBOSE=1 -f /src/libreoffice-6.1.4.2/Makefile.gbuild    all
make[1]: Entering directory '/src/libreoffice-6.1.4.2/build9'
[build CUT] vcl_filters_test
S=/src/libreoffice-6.1.4.2 && B=$S/build9 && I=$B/instdir && W=$B/workdir &&    mkdir -p $W/CppunitTest/ && rm -fr
$W/CppunitTest/vcl_filters_test.test.user && cp -r $W/unittest $W/CppunitTest/vcl_filters_test.test.user &&    rm -fr
$W/CppunitTest/vcl_filters_test.test.core && mkdir $W/CppunitTest/vcl_filters_test.test.core && cd
$W/CppunitTest/vcl_filters_test.test.core &&
(    LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit
/.libs   MALLOC_CHECK_=2 MALLOC_PERTURB_=153     $W/LinkTarget/Executable/cppunittester
$W/LinkTarget/CppunitTest/libtest_vcl_filters_test.so --headless "-env:BRAND_BASE_DIR=file://$B/instdir" "-
env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-
env:UserInstallation=file://$W/CppunitTest/vcl_filters_test.test.user"   "-
env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry"  "-
env:UNO_TYPES=file://$I/program/types.rdb file://$I/program/types/offapi.rdb"  "-
env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/configmgr/source/configmgr.component
file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/ucb/source/core/ucb1.component
file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file://$W/ComponentTarget/uui/util/uui.component
file://$W/ComponentTarget/emfio/emfio.component"  -env:URE_INTERNAL_LIB_DIR=file://$I/program
-env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector
$W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector
$W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector   --protector
$W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector   "-
env:CPPUNITTESTTARGET=$W/CppunitTest/vcl_filters_test.test"   )  > $W/CppunitTest/vcl_filters_test.test.log 2>&1 || (
RET=$?; $S/solenv/bin/gdb-core-bt.sh $W/LinkTarget/Executable/cppunittester $W/CppunitTest/vcl_filters_test.test.core
$RET >> $W/CppunitTest/vcl_filters_test.test.log 2>&1; cat $W/CppunitTest/vcl_filters_test.test.log;
$S/solenv/gbuild/platform/unittest-failed-default.sh Cppunit vcl_filters_test)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2005-2123-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2005-2123-1.wmf: Pass (10ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2006-4071-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2006-4071-1.wmf: Pass (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2007-1090-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2007-1090-1.wmf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/exttextout-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/exttextout-1.wmf: Pass (1108ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/noheader.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/noheader.wmf: Pass (68ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2005-2123-1.wmf-0.009-676:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2005-2123-1.wmf-0.009-676: Fail
(1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2005-2124-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2005-2124-1.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2005-4560-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2005-4560-1.wmf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2006-0143-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2006-0143-1.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2006-0143-2.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2006-0143-2.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2007-1238-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2007-1238-1.wmf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2007-1245-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2007-1245-1.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2015-0848-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/CVE-2015-0848-1.wmf: Fail (6ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-1.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-2.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-2.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-3.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-3.wmf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-4.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/RC4-hang-4.wmf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/bitcount-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/bitcount-1.wmf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/exttextout-2.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/exttextout-2.wmf: Fail (18ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/facename-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/facename-1.wmf: Fail (2ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/ofz5942-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/ofz5942-1.wmf: Fail (16ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2008-1087-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2008-1087-1.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2008-2245-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2008-2245-1.emf: Pass (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0168-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0168-1.emf: Pass (8ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0168-2.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0168-2.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0169-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0169-1.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0169-2.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0169-2.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0169-3.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0169-3.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0170-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-0170-1.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-3301-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-3301-1.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-3303-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-3303-1.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-3304-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/CVE-2016-3304-1.emf: Pass (51ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/crash-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/crash-1.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/crash-2.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/crash-2.emf: Pass (41ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/fdo38580-3.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/pass/fdo38580-3.emf: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/CVE-2004-0209-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/CVE-2004-0209-1.emf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/CVE-2008-1083-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/CVE-2008-1083-1.emf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/CVE-2009-1217-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/CVE-2009-1217-1.emf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/crash-2.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/crash-2.emf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/crash-3.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/crash-3.emf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/fdo71307-2.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/fdo71307-2.emf: Fail (2ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/hang-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/hang-1.emf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/hang-2.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/hang-2.emf: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/slow-moveclip-1.emf:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/emf/fail/slow-moveclip-1.emf: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/CVE-2016-0951-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/CVE-2016-0951-1.png: Pass (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/CVE-2016-0952-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/CVE-2016-0952-1.png: Pass (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/afl-sample-IDAT.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/afl-sample-IDAT.png: Pass (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/black.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/black.png: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/invalid-chunk.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/pass/invalid-chunk.png: Pass (2ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2004-0597-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2004-0597-1.png: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2005-0633-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2005-0633-1.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2006-7210-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2006-7210-1.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2007-2365-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2007-2365-1.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2009-1511-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2009-1511-1.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2016-0951-2.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2016-0951-2.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2016-0952-2.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/CVE-2016-0952-2.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/EDB-34720-1.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/EDB-34720-1.png: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/afl-sample-Z_NEED_DICT.png:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/png/fail/afl-sample-Z_NEED_DICT.png: Fail (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-1.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-1.jpg: Pass (3ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-2.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-2.jpg: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-3.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-3.jpg: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-4.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-4.jpg: Pass (2ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-5.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-5.jpg: Pass (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2017-9614-1.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2017-9614-1.jpg: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/EDB-24743-2.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/EDB-24743-2.jpg: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/EDB-24743-3.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/EDB-24743-3.jpg: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/fatalerror-1.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/pass/fatalerror-1.jpg: Pass (1ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-1.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-1.jpg: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-2.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-2.jpg: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-3.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-3.jpg: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-4.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-4.jpg: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-5.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-1097-5.jpg: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-5314-1.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/CVE-2008-5314-1.jpg: Fail (0ms)
Testing file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg:
Tested file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg: Pass (4ms)
/src/libreoffice-6.1.4.2/unotest/source/cpp/filters-test.cxx:145:VclFiltersTest::testCVEs
equality assertion failed
- Expected: 0
- Actual  : 1
- file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg

VclFiltersTest::testCVEs finished in: 1604ms
scale with type 1
size 80, 79
scale with type 2
size 80, 79
scale with type 3
size 80, 79
scale with type 4
size 80, 79
scale with type 5
size 80, 79
scale with type 6
size 80, 79
scale with type 7
size 80, 79
VclFiltersTest::testScaling finished in: 131ms
Check ExportImport JPG
Check ExportImport PNG
Check ExportImport BMP
VclFiltersTest::testExportImport finished in: 6ms
filters-test.cxx:145:Assertion
Test name: VclFiltersTest::testCVEs
equality assertion failed
- Expected: 0
- Actual  : 1
- file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg

Failures !!!
Run: 3   Failure total: 1   Failures: 1   Errors: 0

Error: a unit test failed, please do one of:

make CppunitTest_vcl_filters_test CPPUNITTRACE="gdb --args"
    # for interactive debugging on Linux
make CppunitTest_vcl_filters_test VALGRIND=memcheck
    # for memory checking
make CppunitTest_vcl_filters_test DEBUGCPPUNIT=TRUE
    # for exception catching

You can limit the execution to just one particular test by:

make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...

make[1]: *** [/src/libreoffice-6.1.4.2/solenv/gbuild/CppunitTest.mk:115: /src/libreoffice-
6.1.4.2/build9/workdir/CppunitTest/vcl_filters_test.test] Error 1
make[1]: Leaving directory '/src/libreoffice-6.1.4.2/build9'
make: *** [Makefile:286: build] Error 2

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Caolán McNamara Caolán McNamara
Reply | Threaded
Open this post in threaded view
|

Re: Buiilding LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

On Tue, 2019-01-22 at 13:58 +0000, Дилян Палаузов wrote:

> Hello,
>
> libjpeg.so can originate from
>
> libjpeg-turbo, https://en.wikipedia.org/wiki/Libjpeg#libjpeg-turbo
> mozjpeg, https://en.wikipedia.org/wiki/Libjpeg#mozjpeg or
> ijg.org (jpeg-9c)
>
> With ./configure --with-system-jpeg, having installed jpeg-9c as
> /usr/local/lib/libjpeg.so, make fails with

> I tried with or without --with-system-jpeg and it fails only in the
> latter case.
>
> What exactly is the problem?

Well, its simply that the test expects
vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg to fail to load
and it unexpectedly succeeded in loading.

All those --with-system-foo options aren't guaranteed to work in all
combinations. The bundled case is supposed to work, and the others are
at your own risk, with the major distros typically keeping their own
working, and libjpeg9 is unpopular as a default distro libjpeg

Someone who wants to use a system libjpeg-9 would have to investigate
if it succeeds for a good reason or if its pure luck, e.g. via
uninitialized data. Running it under valgrind like the trailing debug
text mentions would probably be good enough to rule out a "bad" success
there.

You can move it from the "fail" dir to the "indeterminate" if you just
want to "get on with it"

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Dilyan Palauzov Dilyan Palauzov
Reply | Threaded
Open this post in threaded view
|

Re: Building LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

Hello Caolán,

what is the usefulness of a test, that behaves differently with different jpeg libraries, but none of the test-outcomes is clearly wrong?

Provided nobody states, that this test has an added value, I propose removing it completely.

Playing with build options costs just too much time and there are other issues (see my other mails) that forces one to try different --with(out)- combinations.  So removing this tests makes life simpler and causes no side effects.

Regards
  Дилян

On January 22, 2019 5:31:39 PM GMT+01:00, "Caolán McNamara" <[hidden email]> wrote:

>On Tue, 2019-01-22 at 13:58 +0000, Дилян Палаузов wrote:
>> Hello,
>>
>> libjpeg.so can originate from
>>
>> libjpeg-turbo, https://en.wikipedia.org/wiki/Libjpeg#libjpeg-turbo
>> mozjpeg, https://en.wikipedia.org/wiki/Libjpeg#mozjpeg or
>> ijg.org (jpeg-9c)
>>
>> With ./configure --with-system-jpeg, having installed jpeg-9c as
>> /usr/local/lib/libjpeg.so, make fails with
>
>> I tried with or without --with-system-jpeg and it fails only in the
>> latter case.
>>
>> What exactly is the problem?
>
>Well, its simply that the test expects
>vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg to fail to load
>and it unexpectedly succeeded in loading.
>
>All those --with-system-foo options aren't guaranteed to work in all
>combinations. The bundled case is supposed to work, and the others are
>at your own risk, with the major distros typically keeping their own
>working, and libjpeg9 is unpopular as a default distro libjpeg
>
>Someone who wants to use a system libjpeg-9 would have to investigate
>if it succeeds for a good reason or if its pure luck, e.g. via
>uninitialized data. Running it under valgrind like the trailing debug
>text mentions would probably be good enough to rule out a "bad" success
>there.
>
>You can move it from the "fail" dir to the "indeterminate" if you just
>want to "get on with it"
>
>_______________________________________________
>LibreOffice mailing list
>[hidden email]
>https://lists.freedesktop.org/mailman/listinfo/libreoffice
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Mike Kaganski Mike Kaganski
Reply | Threaded
Open this post in threaded view
|

Re: Building LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

On 22.01.2019 23:56, Dilyan Palauzov wrote:
> Hello Caolán,
>
> what is the usefulness of a test, that behaves differently with different jpeg libraries, but none of the test-outcomes is clearly wrong?

You could notice that the failing test is called testCVEs. It tests that
known vulnerabilities are detected and rejected by the library, rather
than get opened, so it checks that LibreOffice uses library versions
that are safe with regards of those vulnerabilities.

But some libraries versions may decide later to stop rejecting those
samples, including for good reasons, e.g. they might mitigate the
exploit differently, so that the file could get opened then. This is not
something that we should just accept without noticing. If that happens,
we need to see it and understand why has it happened (is that an
unintended regression in that external library, which could make
LibreOffice vulnerable if overlooked, or is that actually a safe change
there, which needs to change our tests to cover this library version?).
This is what Caolán told you ("Someone who wants to use a system
libjpeg-9 would have to investigate if it succeeds for a good reason or
if its pure luck, e.g. via uninitialized data"). This is not the same as

> removing it completely.
> ...
> So removing this tests makes life simpler and causes no side effects.


--
Best regards,
Mike Kaganski
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice