libtiff/tif_lzw.c:501:5: runtime error: load of misaligned address for type 'uint64_t', which requires 8 byte alignment
Summary
Loading the attached tiff file triggers an UBSAN warning in libtif about a load of a misaligned address:
libtiff/libtiff/tif_lzw.c:501:5: runtime error: load of misaligned address 0x7f90bfeef8e1 for type 'uint64_t', which requires 8 byte alignment
0x7f90bfeef8e1: note: pointer points here
c5 97 c2 02 80 00 06 10 28 24 0e 0d 04 18 80 21 30 b8 54 36 18 32 00 44 22 40 01 9c 52 2d 15 1a
^
#0 0x7f90cc7396a5 in LZWDecode libtiff/tif_lzw.c:501
#1 0x7f90cc774433 in TIFFReadEncodedStrip libtiff/tif_read.c:548
Version
libtiff v4.6.0
Steps to reproduce
Call TIFFReadEncodedStrip on all strips of the attached file: 001_DAPI_beads.tif
Platform
Linux, gcc 13.2