bugicoutils - Bugs: bug #52308, wrestool: invalid memory read in...

 
 

bug #52308: wrestool: invalid memory read in read_library

Submitter:  Hanno Boeck <hanno>
Submitted:  Sun 29 Oct 2017 10:54:13 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 31 Oct 2017 06:34:35 PM UTC, comment #3: 

Properly fixed: commit a8c8543731ed255e6f8bb81c662155f98710ac20/release 0.32.2

F R <res>
Group administrator
Tue 31 Oct 2017 06:15:15 PM UTC, comment #2: 

The "fix" is actually incorrect. Needs more work.

F R <res>
Group administrator
Tue 31 Oct 2017 04:16:29 PM UTC, comment #1: 

Fixed in commit 8650b677a5035953edd4b0df62df41e405a86461/release 0.32.1.

F R <res>
Group administrator
Sun 29 Oct 2017 10:54:13 PM UTC, original submission:  

The attached file causes an invalid memory read in the function read_library in wrestool. You can use address sanitizer to see this bug (recompiling with CFLAGS="-fsanitize=address").

This was found with afl.

Stack trace from asan:
==11108==ERROR: AddressSanitizer: SEGV on unknown address 0x62e0bebec2d2 (pc 0x0000005164a1 bp 0x62e00000051c sp 0x7ffd3eb5e380 T0)
==11108==The signal is caused by a READ memory access.
    #0 0x5164a0 in read_library /f/icoutils-0.32.0/wrestool/restable.c:458:13
    #1 0x5128f0 in main /f/icoutils-0.32.0/wrestool/main.c:322:8
    #2 0x7fa2828f75dc in __libc_start_main (/lib64/libc.so.6+0x205dc)
    #3 0x419ea9 in _start (/r/icoutils/wrestool+0x419ea9)

Hanno Boeck <hanno>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #42297:  invalidread.exe added by hanno (376B - application/x-ms-dos-executable)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-10-31 res StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2017-10-31 res StatusFixed In Progress
        Open/ClosedClosed Open
    2017-10-31 res StatusNone Fixed
        Open/ClosedOpen Closed
    2017-10-29 hanno Attached File- Added invalidread.exe, #42297

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code