AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2016.05.26 09:29 "[Tiff] Possible bug in tiffset using array of values", by Romeyke, Andreas

Dear libtiff-developers,

I am trying to "fake" a colormap via tiffset using this commandline:

tiffset -s 320 10 1 2 3 4 5 6 7 8 9 10 minimal_valid.tif

But the tool dies with a segmentation fault

In gdb I got his stacktrace:

(gdb) run -s 320 10 1 2 3 4 5 6 7 8 9 10 foo.tiff Starting program: tiff-4.0.6/build/tools/tiffset -s 320 10 1 2 3 4 5 6 7 8 = 9 10 minimal_valid.tiff

Program received signal SIGSEGV, Segmentation fault. __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unali= gned.S:166

166     ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Datei oder Verzeic=

hnis nicht gefunden.
(gdb) bt
#0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-u=
naligned.S:166
#1 0x00007ffff7babfbc in _TIFFmemcpy () from tiff-4.0.6/build/libtiff/libt=
iff.so.5
#2 0x00007ffff7b5785b in setByteArray () from tiff-4.0.6/build/libtiff/lib=
tiff.so.5
#3 0x00007ffff7b57919 in _TIFFsetShortArray () from tiff-4.0.6/build/libti=
ff/libtiff.so.5
#4 0x00007ffff7b58f6b in _TIFFVSetField () from tiff-4.0.6/build/libtiff/l=
ibtiff.so.5
#5 0x00007ffff7b5aee9 in TIFFVSetField () from tiff-4.0.6/build/libtiff/li=
btiff.so.5
#6 0x00007ffff7b5acc1 in TIFFSetField () from tiff-4.0.6/build/libtiff/lib=
tiff.so.5
#7 0x0000000000401aa5 in main ()

The libtiff was a fresh copy of tiff-4.0.6.tar.gz and compiled using cmake = (cd build; cmake ../; make -j 6) and gcc on Debian Jessie (Intel i7 core)

The minimal_valid.tif was a valid minimal tiff, see attachment

Mit freundlichen Grüßen
With best regards,

Andreas Romeyke
--
team member "long-term preservation"

Saxon State- and University Library Dresden (SLUB) Department 2 (IT), Division 2.3 (infrastructure and digital long-term prese= rvation)

Zellescher Weg 18 | 01069 Dresden
phone: +49 351 4677 216

E-Mail: Andreas.Romeyke@slub-dresden.de http://www.slub-dresden.de/ | @slubdresden