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

 
 

bug #52308: wrestool: invalid memory read in read_library

Submitted by:  Hanno Boeck <hanno>
Submitted on:  Sun 29 Oct 2017 10:54:13 PM 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 06:34:35 PM UTC, comment #3:

Properly fixed: commit a8c8543731ed255e6f8bb81c662155f98710ac20/release 0.32.2

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

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

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

Fixed in commit 8650b677a5035953edd4b0df62df41e405a86461/release 0.32.1.

F R <res>
Project 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 File(s):
   
   
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
  • -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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 31 Oct 2017 06:34:35 PM UTCresStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 31 Oct 2017 06:15:15 PM UTCresStatusFixed=>In Progress
      Open/ClosedClosed=>Open
    Tue 31 Oct 2017 04:16:29 PM UTCresStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 29 Oct 2017 10:54:13 PM UTChannoAttached File-=>Added invalidread.exe, #42297

    Back to the top


    Powered by Savane 3.1-cleanup1