bugicoutils - Bugs: bug #52313, out of bounds read access in...

 
 

bug #52313: out of bounds read access in simple_vec / icotool -l

Submitted by:  Hanno Boeck <hanno>
Submitted on:  Tue 31 Oct 2017 09:38:14 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 31 Oct 2017 04:17:08 PM UTC, comment #1:

Fixed in 15ef8e8c9994981d25d623602ae1f329b363c20f/release 0.32.1.

F R <res>
Project Administrator
Tue 31 Oct 2017 09:38:14 AM UTC, original submission:

The attached file will cause an out of bounds read access when passed to icotool -l. This can be detected with address sanitizer. In a normal build it will cause a segfault.

ASAN stack trace:
==32295==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x615000000280 at pc 0x000000518c5c bp 0x7ffc48d18b90 sp 0x7ffc48d18b88
READ of size 1 at 0x615000000280 thread T0
#0 0x518c5b in simple_vec /f/icoutils-0.32.0/icotool/extract.c:440:11
#1 0x518c5b in extract_icons /f/icoutils-0.32.0/icotool/extract.c:332
#2 0x51a867 in main /f/icoutils-0.32.0/icotool/main.c:359:22
#3 0x7fdf2add25dc in __libc_start_main (/lib64/libc.so.6+0x205dc)
#4 0x41aa79 in _start (/r/icoutils/icotool+0x41aa79)

0x615000000280 is located 0 bytes to the right of 512-byte region [0x615000000080,0x615000000280)
allocated by thread T0 here:
#0 0x4d9668 in malloc (/r/icoutils/icotool+0x4d9668)
#1 0x5300fe in xmalloc /f/icoutils-0.32.0/lib/xmalloc.c:41:13
#2 0x51a867 in main /f/icoutils-0.32.0/icotool/main.c:359:22
#3 0x7fdf2add25dc in __libc_start_main (/lib64/libc.so.6+0x205dc)

Hanno Boeck <hanno>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #42305:  oob.ico added by hanno (1KiB - image/vnd.microsoft.icon)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by res (Posted a comment)
  • -unavailable- added by hanno (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 31 Oct 2017 04:17:08 PM UTCresStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 31 Oct 2017 09:38:14 AM UTChannoAttached File-=>Added oob.ico, #42305

    Back to the top


    Powered by Savane 3.1-cleanup1