#1108680 exiftran: segfault with option '-g'

Package:
exiftran
Source:
exiftran
Description:
digital camera JPEG image transformer
Submitter:
Francesco Poli (wintermute)
Date:
2026-08-23 07:41:02 UTC
Severity:
normal
#1108680#5
Date:
2025-07-02 21:03:14 UTC
From:
To:
Hello,
I found out that exiftran segfaults when passed the option '-g'.
I found it out, since geeqie invokes exiftran with that option (as well
as others).


The bug seems to be reproducible with all my JPEG photos, see for instance
the attached one (which is just a sample photo, please do not care about
its poor quality...).

  $ exiftran -9 -o test.jpg -g dscn4348.jpg
  Segmentation fault
  $ echo $?
  139
  $ ls *.jpg
  dscn4348.jpg

No rotated image is created, since the program segfaults.


If I instead drop the '-g' option:

  $ exiftran -9 -o test.jpg dscn4348.jpg
  $ echo $?
  0
  $ ls *.jpg
  dscn4348.jpg  test.jpg

And file 'test.jpg' is rotated version of 'dscn4348.jpg', as it
should be.


Please investigate this bug and/or forward my bug report upstream,
as appropriate.

Thanks for your time!
Bye.

#1108680#10
Date:
2026-08-23 07:38:37 UTC
From:
To:
I confirm the crash on any jpeg file with -g option. The crash occurs in
libjpeg62-turbo as the backtrace shows:

(gdb) r
Starting program: /usr/bin/exiftran -gp -a IMG_4806.JPG -o IMG_4806.test.JPG
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f47e28 in ?? () from /lib/x86_64-linux-gnu/libjpeg.so.62
(gdb) bt
#0  0x00007ffff7f47e28 in ?? () from /lib/x86_64-linux-gnu/libjpeg.so.62
#1  0x00000000000000a0 in ?? ()
#2  0x0000555555575a70 in ?? ()
#3  0x0000555555589de0 in ?? ()
#4  0x0000555555589e00 in ?? ()
#5  0x0000555555589e20 in ?? ()
#6  0x000055555558a100 in ?? ()
#7  0x00007fffffffd4e0 in ?? ()
#8  0x0000555555575a70 in ?? ()
#9  0x0000000000000001 in ?? ()
#10 0x0000000000000000 in ?? ()