Skip to content
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

Exception in reading exif from a PNG file #2748

Closed
tomaszg7 opened this issue Aug 30, 2023 · 1 comment
Closed

Exception in reading exif from a PNG file #2748

tomaszg7 opened this issue Aug 30, 2023 · 1 comment

Comments

@tomaszg7
Copy link

Describe the bug

Geeqie was crashing on a particular file I had on my disk (BestImageViewer/geeqie#1181). It turns out current version of exiv2 (i.e. 0.28) was throwing exception. Before there was no problem, but I didn't downgrade the library to check.

To Reproduce

Steps to reproduce the behavior:

  1. download the file from here: http://www.normankoren.com/Tutorials/Lenstarg_25_7086p_15g_25is.png
  2. run exiv2 Lenstarg_25_7086p_15g_25is.png
  3. Uncaught exception: Overflow in Exiv2::DataBuf::c_data

Desktop (please complete the following information):

  • OS and version: Gentoo
  • Exiv2 version and source: exiv2-0.28.0 built locally
  • Compiler and version: gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1 20230526
  • Compilation mode and/or compiler flags: nothing fancy, -O2 -march=native -pipe

Additional context

exiftool produces normal output:

ExifTool Version Number         : 12.64
File Name                       : Lenstarg_25_7086p_15g_25is.png
Directory                       : .
File Size                       : 201 kB
File Modification Date/Time     : 2017:08:16 18:22:37+02:00
File Access Date/Time           : 2023:08:30 11:52:08+02:00
File Inode Change Date/Time     : 2023:08:30 11:52:08+02:00
File Permissions                : -rw-r--r--
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 7086
Image Height                    : 2168
Bit Depth                       : 8
Color Type                      : Palette
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Palette                         : (Binary data 768 bytes, use -b option to extract)
Pixels Per Unit X               : 2835
Pixels Per Unit Y               : 2835
Pixel Units                     : meters
Modify Date                     : 2003:04:19 16:57:09
Author                          : 
Description                     : Target length = 2.5mm;  7086 pixels;  gamma = 1.5
Copyright                       : 
Creation Time                   : 
Software                        : 
Disclaimer                      : 
PNG Warning                     : 
Source                          : 
Comment                         : 
Title                           : 
Image Size                      : 7086x2168
Megapixels                      : 15.4
@tomaszg7 tomaszg7 added the bug label Aug 30, 2023
@kmilos
Copy link
Collaborator

kmilos commented Aug 30, 2023

Can't reproduce w/ current 0.28.x branch tip.

$ ./exiv2 Lenstarg_25_7086p_15g_25is.png
File name       : Lenstarg_25_7086p_15g_25is.png
File size       : 200554 Bytes
MIME type       : image/png
Image size      : 7086 x 2168
Lenstarg_25_7086p_15g_25is.png: No Exif data found in the file

Duplicate of #2650

Please search before opening new issues.

@kmilos kmilos closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants