Skip to content
Snippets Groups Projects
Closed libtiff/tif_lzw.c:501:5: runtime error: load of misaligned address for type 'uint64_t', which requires 8 byte alignment
  • View options
  • libtiff/tif_lzw.c:501:5: runtime error: load of misaligned address for type 'uint64_t', which requires 8 byte alignment

  • View options
  • Closed Issue created by Milian Wolff

    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

    Linked items 0

  • Link items together to show that they're related or that one is blocking others.

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading