Attempts to insert a jpeg into a cell fail (Insert picture from file...). I can insert a gif image. I downgraded to 3.4.5 and jpeg insertion worked again.
confirming - works in 3.4.6, fails in 3.5.x and master.
svtools jpeg importing tests do actually work under Linux ppc64 FWIW. I had earlier thought they failed, but nope, they pass.
I'd guess fe40da4cb640819d869d1c925869bc87ede9bbfe is the culprit
crap, Linux ppc32 also succeeds without problem, which means I can't reproduce it locally, so I'm out. What's needed is someone to stick some breakpoints into JPEGReader::CreateBitmap as seen in http://cgit.freedesktop.org/libreoffice/core/commit/?id=fe40da4cb640819d869d1c925869bc87ede9bbfe and see if a) it even gets there, and b) where it bails out
So - the abovementioned change is unrelated, as it doesn't even get to that point, it already fails in jpegc.c on the jpeg_create_decompress( &cinfo ); line. i.e. the jpeg_create_decompress call exits hard, decompression of the jpeg doesn't even start. Disabling the custom error handler and using libjpeg's default one gives some more info: file:///Users/buildslave/compile.noindex/libreoffice/svtools/qa/cppunit/data/jpg/pass/CVE-2004-0200-2.jpg,JPEG parameter struct mismatch: library thinks size is 488, caller expects 484 so for some reason there is a size mismatch. However It is unclear to me where/how this mismatch is introduced
Christian Lohmaier committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a27a3990b8bbfa8924d2b55c38ceab7c9049ea6d fdo#47035: Fix loading of jpeg files on Mac/PPC
Christian Lohmaier committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a8ecb8801f4330c2d2da88b992e2039e020d4fa4 fdo#47035: Fix saving of jpeg files on Mac/PPC
Christian Lohmaier committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=efdd08cf8985c0b322ef94f62877caa5c4b3694d&g=libreoffice-3-5 fdo#47035: Fix loading of jpeg files on Mac/PPC It will be available in LibreOffice 3.5.5.
Christian Lohmaier committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a220ec769d6489df7f3dd01cf25ea59dfd793276&g=libreoffice-3-5 fdo#47035: Fix saving of jpeg files on Mac/PPC It will be available in LibreOffice 3.5.5.
Christian Lohmaier committed a patch related to this issue. It has been pushed to "libreoffice-3-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=20987a1d0ec675f3a23a4be58eb7309f60fc62de&g=libreoffice-3-5-4 fdo#47035: Fix loading of jpeg files on Mac/PPC It will be available already in LibreOffice 3.5.4.
Christian Lohmaier committed a patch related to this issue. It has been pushed to "libreoffice-3-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d4f45305ecdb38d3c2b5f91ec4f29cb89e29f770&g=libreoffice-3-5-4 fdo#47035: Fix saving of jpeg files on Mac/PPC It will be available already in LibreOffice 3.5.4.
*** Bug 50213 has been marked as a duplicate of this bug. ***
fixed