#880684 wrestool: out-of-bounds read in read_library()

Package:
icoutils
Source:
icoutils
Description:
Create and extract MS Windows icons and cursors
Submitter:
Jakub Wilk
Date:
2017-11-03 18:51:05 UTC
Severity:
normal
#880684#3
Date:
2017-11-03 18:49:49 UTC
From:
To:
$ valgrind -q -- wrestool --extract --raw oob.exe > /dev/null
==7308== Invalid read of size 4
==7308==    at 0x10B450: read_library (restable.c:488)
==7308==    by 0x1096AE: main (main.c:322)
==7308==  Address 0x4a119fc is 10 bytes after a block of size 50 alloc'd
==7308==    at 0x483047C: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==7308==    by 0x10E669: xrealloc (xmalloc.c:61)
==7308==    by 0x10B44F: read_library (restable.c:485)
==7308==    by 0x1096AE: main (main.c:322)
==7308==
wrestool: oob.exe: premature end