found via clang 3.5
./configure --enable-sanitize=address CFLAGS="-fsanitize=undefined" CC=clang; make
when a positional sound is played ( the -262.562 seems to be x or y position?
(positional sounds?)) :
/home/matthias/vcs/git/freedroid/src/sound.c:497:2: runtime error: value
-262.562 is outside the range of representable values of type 'unsigned short'
when tux is dropped on the level/a level is being initialized:
influ.c:599:16: runtime error: index -1 out of bounds for type 'level *[100]'
opening "notes" in quest browser:
quest_browser_ui.c:164:34: runtime error: index -1 out of bounds for type 'int [50]'
starting hacking game:
takeover.c:948:13: runtime error: index 24 out of bounds for type 'struct image
[16]'
takeover.c:949:4: runtime error: index 24 out of bounds for type 'struct image [16]'
takeover.c:950:4: runtime error: index 24 out of bounds for type 'struct image [16]'
when tux dies:
/home/matthias/vcs/git/freedroid/src/hud.c:73:2: runtime error: value -1.71914
is outside the range of representable values of type 'unsigned short'
|