Bug 730364
Summary: | invalid read from valgrind in libjpeg-turbo | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christophe Fergeau <cfergeau> |
Component: | libjpeg-turbo | Assignee: | Adam Tkac <atkac> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | atkac, ovasik, sbergman, siarhei.siamashka |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-11-10 15:07:14 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Christophe Fergeau
2011-08-12 15:48:06 UTC
I get a similar problem when valgrinding LibreOffice (its chart2/qa/unoapi test triggers this) on Fedora 15 x86_64, Invalid read of size 8 at ??? (in jsimd_idct_islow_sse2 assembler code) by jsimd_idct_islow (.../libjpeg-turbo-1.1.1/simd/jsimd_x86_64.c:662) by jsimd_ycc_rgb_convert (.../libjpeg-turbo-1.1.1/simd/jsimd_x86_64.c:133) by sep_upsample (.../libjpeg-turbo-1.1.1/jdsample.c:132) by process_data_simple_main (.../libjpeg-turbo-1.1.1/jdmainct.c:369) by jpeg_read_scanlines (.../libjpeg-turbo-1.1.1/jdapistd.c:175) by ReadJPEG (.../libreoffice/core/svtools/source/filter/jpeg/jpegc.c:196) Address 0x241290c4 is 26,692 bytes inside a block of size 26,696 alloc'd at malloc (.../valgrind/trunk/coregrind/m_replacemalloc/vg_replace_malloc.c:263) by rtl_allocateMemory_SYSTEM (.../libreoffice/core/sal/rtl/source/alloc_global.c:278) by rtl_allocateMemory (.../libreoffice/core/sal/rtl/source/alloc_global.c:308) by JPEGReader::CreateBitmap(void*) (.../libreoffice/core/svtools/source/filter/jpeg/jpeg.cxx:403) by ReadJPEG (.../libreoffice/core/svtools/source/filter/jpeg/jpegc.c:158) This appears to be benign, the jsimd_idct_islow_sse2 assembler code apparently reading 8-byte-sized chunks and thus including 4 bytes past the end of the buffer, for a buffer whose length is a multiple of 4 but not of 8. If I manually change the malloc size by +4, this valgrind error goes (naturally) away and valgrind also does not complain about use of uninitialized memory afterwards, so the way jsimd_idct_islow_sse2 uses the excess 4 bytes appears to indeed be harmless. In my opinion this is only cosmetic issue and doesn't cause any real problem/crash. I opened following ticket in upstream: https://sourceforge.net/tracker/?func=detail&aid=3436130&group_id=303195&atid=1278158 I'm closing this ticket. If upstream decides that this issue should be fixed, fix will be included into Fedora when upstream releases new tarball. (In reply to comment #1) > I get a similar problem when valgrinding LibreOffice (its chart2/qa/unoapi > test triggers this) on Fedora 15 x86_64, Is it difficult to reproduce this test? I tried, but gave up after ~15 minutes. Re comment #3, . Env.Host.sh cd chart2 VALGRIND=memcheck make -r "${WORKDIR?}"/JunitTest/chart2_unoapi/done should suffice to reproduce it from within a LibreOffice build, but the valgrind run can indeed take quite a while. |