bugicoutils - Bugs: bug #52319, wrestool -x null pointer read...

 
 

bug #52319: wrestool -x null pointer read access / segfault in extract_bitmap_resource

Submitter:  Hanno Boeck <hanno>
Submitted:  Tue 31 Oct 2017 07:27:51 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
   

Wed 07 Mar 2018 12:11:50 PM UTC, comment #2: 

Applied patch to git.

F R <res>
Group administrator
Wed 01 Nov 2017 01:01:10 PM UTC, comment #1: 

The attached patch fixes the segfault.

(file #42313)

Martin Gieseking <mgieseking>
Tue 31 Oct 2017 07:27:51 PM UTC, original submission:  

Attached file will segfault wrestool -x.

asan stack trace:
==32031==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000050eac2 bp 0x7ffd0f83d920 sp 0x7ffd0f83d820 T0)
==32031==The signal is caused by a READ memory access.
==32031==Hint: address points to the zero page.
    #0 0x50eac1 in extract_bitmap_resource /f/icoutils/wrestool/extract.c:291:5
    #1 0x50eac1 in extract_resource /f/icoutils/wrestool/extract.c:96
    #2 0x50e51f in extract_resources_callback /f/icoutils/wrestool/extract.c:45:11
    #3 0x5142a5 in do_resources_recurs /f/icoutils/wrestool/restable.c:111:17
    #4 0x513511 in do_resources /f/icoutils/wrestool/restable.c:71:5
    #5 0x512aae in main /f/icoutils/wrestool/main.c
    #6 0x7fd631a245dc in __libc_start_main (/lib64/libc.so.6+0x205dc)
    #7 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 #42313:  nullptr.patch added by mgieseking (418B - text/x-patch)
file #42310:  nullptr.exe added by hanno (248B - 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 mgieseking (Updated the item)
  • -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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-07 res StatusNone Fixed
        Open/ClosedOpen Closed
    2017-11-01 mgieseking Attached File- Added nullptr.patch, #42313
    2017-10-31 hanno Attached File- Added nullptr.exe, #42310

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code