New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught exception: Overflow in Exiv2::DataBuf::c_data #2650
Comments
@joelsgp $ exiv2 --Print xkycvt 245224405-44bb2c8a-37b1-4847-9004-b5950ef47633.png
Uncaught exception: Overflow in Exiv2::DataBuf::c_data If I repeat the same test using exiv2-0.27.7-Linux64.tar.gz then no error is flagged although also no tags are printed. ExifTool processes the file without warning/error but the tags displayed are PNG metadata - which Exiv2 does not currently support. $ exiftool -g 245224405-44bb2c8a-37b1-4847-9004-b5950ef47633.png
---- ExifTool ----
ExifTool Version Number : 12.63
---- File ----
File Name : 245224405-44bb2c8a-37b1-4847-9004-b5950ef47633.png
Directory : .
File Size : 253 kB
File Modification Date/Time : 2023:06:13 15:10:11+01:00
File Access Date/Time : 2023:06:13 15:10:28+01:00
File Inode Change Date/Time : 2023:06:13 15:10:28+01:00
File Permissions : -rw-rw-r--
File Type : PNG
File Type Extension : png
MIME Type : image/png
---- PNG ----
Image Width : 512
Image Height : 512
Bit Depth : 8
Color Type : RGB with Alpha
Compression : Deflate/Inflate
Filter : Adaptive
Interlace : Noninterlaced
Generated By : Generated by the Developer's Image Library (DevIL)
Author :
Description :
---- Composite ----
Image Size : 512x512
Megapixels : 0.262 Note: Exiv2 can read Exif metadata stored in a PNG file. It appears that there is a new bug in Exiv2 when processing PNG files. However, I am sorry but I cannot commit more time to investigate your problem. |
The exception comes from here: Lines 113 to 114 in 5d1467b
In 0.27.x we used unsafe arithmetic on This needs to be fixed for all text chunks, i.e. tEXt, zTXt, and iTXt. |
https://bugs.kde.org/show_bug.cgi?id=470852 might be the same issue. The backtrace is
|
After updating from 0.27.6-2 to 0.28.0-1 exiv2 & 0.14.0.-3 to 0.14.1-1 libgexiv2 ( Arch via EndeavourOS ), I am running into the same issue. Information here: https://forum.endeavouros.com/t/interesting-shotwell-problem-segfault-from-exiv2-solved/41795 Downgrading returned normal function to Shotwell. I currently have those updates blocked. |
The fix has been cherry-picked in Arch Linux package |
Also confirmed here as working...Thank You! |
Describe the bug
crashes when opening this particular image, dingus_nowhiskers.png
To Reproduce
Image attached:
you can search dingus the cat or maxwell the cat to find it. hosted here: https://github.com/LeoDog896/maxwell/tree/main/images
Expected behavior
works as usual
Desktop (please complete the following information):
extra
exiv2Additional context
Add any other information about the problem here.
after I run
mogrify -strip
from imagemagick, it works like so:The text was updated successfully, but these errors were encountered: