bugGNU patch - Bugs: bug #53132, segfault / null pointer read

 
 

bug #53132: segfault / null pointer read

Submitted by:  Hanno Boeck <hanno>
Submitted on:  Mon 12 Feb 2018 03:19:24 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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.

 

Mon 12 Feb 2018 03:53:22 PM UTC, comment #1:

Fix pushed, thanks.

Andreas Gruenbacher <agruen>
Project Administrator
Mon 12 Feb 2018 03:19:24 PM UTC, original submission:

The attached file will crash patch v2.7.6 with a null pointer access.

Stack trace (from asan):
==15137==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x0000004b059d bp 0x7fffe38095b0 sp 0x7fffe3808d20 T0)
==15137==The signal is caused by a READ memory access.
==15137==Hint: address points to the zero page.
    #0 0x4b059c in __interceptor_strcmp.part.252 (/r/patch/patch+0x4b059c)
    #1 0x51e4b9 in main /f/patch-2.7.6/src/patch.c:386:47
    #2 0x7f8f68383f85 in __libc_start_main (/lib64/libc.so.6+0x20f85)
    #3 0x41b139 in _start (/r/patch/patch+0x41b139)

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 #43260:  segfault.patch added by hanno (57B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-12 agruen StatusNone => Fixed
        Open/ClosedOpen => Closed
    2018-02-12 hanno Attached File- => Added segfault.patch, #43260

    Back to the top


    Powered by Savane 3.4