Your message dated Mon, 11 May 2015 01:49:16 +0000
with message-id <[email protected]>
and subject line Bug#784631: fixed in exempi 2.2.2-2
has caused the Debian Bug report #784631,
regarding libexempi3: out-of-bounds read in TrimTrailingSpaces
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
784631: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784631
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libexempi3
Version: 2.2.1-2
Usertags: afl

Exempi crashes on the attached file:

$ exempi -x crash.jpeg
processing file crash.jpeg
dump_xmp for file crash.jpeg
Segmentation fault


GDB says it's an out-of-bounds read:

0xf7f24128 in TrimTrailingSpaces (info=0xffffd33c) at ReconcileTIFF.cpp:217
217             if ( (*lastChar != ' ') && (*lastChar != 0) ) return;   // 
Nothing to do.
(gdb) print lastChar
$1 = 0xed056bba <error: Cannot access memory at address 0xed056bba>
(gdb) bt
#0  0xf7f24128 in TrimTrailingSpaces (info=0xffffd33c) at ReconcileTIFF.cpp:217
#1  0xf7f249c1 in ImportSingleTIFF_ASCII (tagInfo=..., xmp=0x8056970, xmpNS=0xf7f4efcc 
"http://ns.adobe.com/tiff/1.0/";, xmpProp=0xf7f4f6f1 "Model") at 
ReconcileTIFF.cpp:465
#2  0xf7f25004 in ImportSingleTIFF (tagInfo=..., nativeEndian=true, xmp=0x8056970, xmpNS=0xf7f4efcc 
"http://ns.adobe.com/tiff/1.0/";, xmpProp=0xf7f4f6f1 "Model") at 
ReconcileTIFF.cpp:667
#3  0xf7f260ce in ImportTIFF_StandardMappings (ifd=0 '\000', tiff=..., 
xmp=0x8056970) at ReconcileTIFF.cpp:1213
#4  0xf7f27e36 in PhotoDataUtils::Import2WayExif (exif=..., xmp=0x8056970, 
iptcDigestState=1) at ReconcileTIFF.cpp:1823
#5  0xf7f23a24 in ImportPhotoData (exif=..., iptc=..., psir=..., 
iptcDigestState=1, xmp=0x8056970, options=4) at ReconcileLegacy.cpp:77
#6  0xf7ec410b in JPEG_MetaHandler::ProcessXMP (this=0x8056948) at 
JPEG_Handler.cpp:694
#7  0xf7eb29aa in XMPFiles::GetXMP (this=0x8056868, xmpObj=0xffffd594, 
xmpPacket=0xffffd580, xmpPacketLen=0xffffd584, packetInfo=0x0) at 
XMPFiles.cpp:1370
#8  0xf7eaee35 in WXMPFiles_GetXMP_1 (xmpObjRef=0x8056868, xmpRef=0x8056ae8, 
clientPacket=0x0, packetInfo=0x0, SetClientString=0xf7e6c6ca 
<TXMPFiles<std::string>::SetClientString(void*, char const*, unsigned int)>, 
wResult=0xffffd600) at WXMPFiles.cpp:238
#9  0xf7e6c2f1 in TXMPFiles<std::string>::GetXMP (this=0x8056858, 
xmpObj=0x8056ad8, xmpPacket=0x0, packetInfo=0x0) at 
../public/include/client-glue/TXMPFiles.incl_cpp:295
#10 0xf7e65313 in xmp_files_get_new_xmp (xf=0x8056858) at exempi.cpp:322
#11 0x08049ea6 in get_xmp_from_file (filename=filename@entry=0xffffd9f5 
"crash.jpeg", no_reconcile=no_reconcile@entry=false, 
is_an_xmp=is_an_xmp@entry=false) at main.cpp:239
#12 0x08049584 in dump_xmp (outio=<optimized out>, is_an_xmp=<optimized out>, 
no_reconcile=<optimized out>, filename=0xffffd9f5 "crash.jpeg") at main.cpp:251
#13 process_file (output="", prop_value="", value_name="", action=<optimized out>, dump_xml=<optimized 
out>, write_in_place=<optimized out>, is_an_xmp=<optimized out>, no_reconcile=<optimized out>, filename=0xffffd9f5 
"crash.jpeg") at main.cpp:337
#14 main (argc=<optimized out>, argv=<optimized out>) at main.cpp:191


This bug was found using American fuzzy lop:
http://lcamtuf.coredump.cx/afl/


-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libexempi3 depends on:
ii  libc6              2.19-18
ii  libexpat1          2.1.0-6+b3
ii  libgcc1            1:5.1.1-4
ii  libstdc++6         5.1.1-4
ii  multiarch-support  2.19-18
ii  zlib1g             1:1.2.8.dfsg-2+b1

--
Jakub Wilk

--- End Message ---
--- Begin Message ---
Source: exempi
Source-Version: 2.2.2-2

We believe that the bug you reported is fixed in the latest version of
exempi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <[email protected]> (supplier of updated exempi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 11 May 2015 03:34:01 +0200
Source: exempi
Binary: exempi libexempi3 libexempi-dev libexempi3-dbg
Architecture: source amd64
Version: 2.2.2-2
Distribution: unstable
Urgency: medium
Maintainer: Michael Biebl <[email protected]>
Changed-By: Michael Biebl <[email protected]>
Description:
 exempi     - command line tool to manipulate XMP metadata
 libexempi-dev - library to parse XMP metadata (Development files)
 libexempi3 - library to parse XMP metadata (Library)
 libexempi3-dbg - library to parse XMP metadata (Debug files)
Closes: 784631
Changes:
 exempi (2.2.2-2) unstable; urgency=medium
 .
   * Fix an out of bounds access when reading tag. Patch cherry-picked from
     upstream Git. (Closes: #784631)
Checksums-Sha1:
 b08f51625b5f763bfe66b63c60327ebfa4b0be1a 2031 exempi_2.2.2-2.dsc
 c448e70750419f379d4f93bedd9cacdf6725964a 9768 exempi_2.2.2-2.debian.tar.xz
 0ad72d35a100830586414a6fb0b0f4554e69e491 18874 exempi_2.2.2-2_amd64.deb
 2c71509ab31be996e8aeec0f951da303932031e4 399156 libexempi3_2.2.2-2_amd64.deb
 c91e066d43e470a5610e0de252e95ea15f72432d 463028 libexempi-dev_2.2.2-2_amd64.deb
 ad301e6883196e763050006d891de5e3c7387130 2884596 
libexempi3-dbg_2.2.2-2_amd64.deb
Checksums-Sha256:
 d9cd8d55bb3b26ce9ac1ea9712f35ef74051a4b5d38abd67ccc29a8d1525396d 2031 
exempi_2.2.2-2.dsc
 6a4d920774ddab559c7f3d09ca8baa151c1d535190ebe701c5dd22693cf67e95 9768 
exempi_2.2.2-2.debian.tar.xz
 4aeb9ce19b952b775a01d5c2a47bc1cad98f596bb83b5cb8335baf9107b0aa73 18874 
exempi_2.2.2-2_amd64.deb
 940eb0573e4f0e6342f147b3bc6efd4ec1c410e9d97fe14be761bb6b954cee08 399156 
libexempi3_2.2.2-2_amd64.deb
 c816d99ca6add4bd07db80cb118bc74a8601619be31a6a5a5f651a78d00324cd 463028 
libexempi-dev_2.2.2-2_amd64.deb
 f1502a5a2da786cdf334ac8291a2b53d3ad883fd6459fd96ae6fca3ef1159c6f 2884596 
libexempi3-dbg_2.2.2-2_amd64.deb
Files:
 4b24e6a5edea2bfdc1c9603e6be57e38 2031 libs optional exempi_2.2.2-2.dsc
 2b3633b7a3afb93d16ff758f1dcb2508 9768 libs optional 
exempi_2.2.2-2.debian.tar.xz
 637b6ffa06375129db437be50d880ae3 18874 graphics optional 
exempi_2.2.2-2_amd64.deb
 29d476214a8d02a807944dfdeb31fb68 399156 libs optional 
libexempi3_2.2.2-2_amd64.deb
 06b6ec697b0019d1d5eab94ef294df55 463028 libdevel optional 
libexempi-dev_2.2.2-2_amd64.deb
 95fabbd39c2ed0ba1aa9b55ca18002ee 2884596 debug extra 
libexempi3-dbg_2.2.2-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVUAfOAAoJEGrh3w1gjyLc1z0P/A6izKK658vLE5HkLgrQkl6O
L9oCqrxNUZubghfvb2F1WYaJ8I29xaNPzMTGbvlguH8OLwM7cZ9LpHM0UoYt6FuM
8ORaTYZPantH0IKgpM9YfZONSrM+zrN6V+PX0LepJXvMeOKvTpNGfFeq5nxXhCMR
qoyHWBmti3RadEkNmMvcfQ6lE0muud5gs45sYwbDMTZ35G6mKwvyl6+NomiKHTjw
xV56C3kGFdmh3Gwr6L19VgCYoYeCL4yfHKWBEEu4n+e9mo8SaJngX+ReAu5G2sQ+
bsmCah8xqXlvxVLN6jWY+kvpHqex4xMXtIhcypqizBiWBVBNOzTjoGUXMxI7mw/V
Ih7fjIZJFbeJw+uUb/ZtCc8JFZtyQRh21gfBJOj1oGUiKDGBtuuGp0dK7MHNypLa
XK72jPQkoaW2zKU77aYIyl5q0ag7acq7oa9tUftpRtduJdNkrt0lKjmLSPQR9YKr
ARXhDf1Gj04cSHebju2maqcapG2yY2tjFFlmbfa38YcDx4SO4ClM7EsGtiBat0Yv
APs8CGxOxmHgQ0zIVUnbg6KHPDIu8GNyT3USUDoHYwzRuxRM9ceLTQmSJ0A9HE0B
IVHYez40LnWTJo9bm30Yi82D6B2KNMr64AzALn22WKyRqqvNJikX8sgKpS9Cx+gv
YUh/VXOenkgTCic6ozec
=fVHq
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to