Menu

#709 Undefined behavior while loading a value of type float from an unaligned address.

v1.0_(example)
closed-fixed
None
5
2023-04-29
2023-04-17
babybus
No

Command Input

gm convert poc_file /dev/null

poc_file are attached.

Sanitizer Dump

magick/attribute.c:2167:50: runtime error: load of misaligned address 0x000002710a0f for type 'float', which requires 4 byte alignment
0x000002710a0f: note: pointer points here
 66 00 00 49 49  2a 00 08 00 00 00 0b 00  0f 01 02 00 06 00 00 00  92 00 00 00 10 01 02 00  0e 00 00
             ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior magick/attribute.c:2167:50 in

Environment

  • OS: Ubuntu 20.04.1
  • Clang:12.0.0
  • GraphicsMagick: GraphicsMagick-1.3.40

we built GraphicsMagick with UndefinedBehaviourSanitizer (UBSAN).

  CC       = clang
  CFLAGS   = -fopenmp -fsanitize=undefined -g -O0 -Wall
  CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2
  CXX      = clang++
  CXXFLAGS = -fsanitize=undefined -g -O0
  DEFS     = -DHAVE_CONFIG_H
  LDFLAGS  = 
  LIBS     = -ljbig -lwebp -lwebpmux -ltiff -lfreetype -ljpeg -lpng16 -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lpthread
1 Attachments

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2023-04-17
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2023-04-29
    • status: open --> closed-fixed
    • private: Yes --> No
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2023-04-29

    This issue is address by Mercurial changeset 17038:ca23f27fe474

     

Log in to post a comment.

MongoDB Logo MongoDB