exiv2: Fix use-after-free of the image filename/path.
authorSolomon Peachy <pizza@shaftnet.org>
Fri, 4 Mar 2016 00:47:26 +0000 (19:47 -0500)
committerKlaus Ethgen <Klaus@Ethgen.de>
Fri, 4 Mar 2016 08:19:24 +0000 (09:19 +0100)
commit96db62d2afb70a4cba99a424122667d61ac6028b
tree1c53757694341e2e4d1f63205cb869664ab778db
parented2c824fa32c3ae49b8e8bd4ae2dc7ee2bcbd17d
exiv2: Fix use-after-free of the image filename/path.

This caused garbage to be returned when we attempted to use the path to
determine if the file is a RAW image.  Now, RAWs are detected properly
and the proper full-res previews are used.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Klaus Ethgen <Klaus@Ethgen.de>
src/exiv2.cc