bugGNU patch - Bugs: bug #44051, fuzzed diff can make patch to eat...

 
 

bug #44051: fuzzed diff can make patch to eat memory and later segfault

Submitted by:  Laszlo Boszormenyi (GCS) <gcs>
Submitted on:  Tue 20 Jan 2015 07:20:52 AM 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 16 Feb 2015 12:04:24 PM UTC, comment #2: 

Commit "Fail when out of memory in set_hunkmax()" in version 2.7.2 fixes the segmentation fault, however it does not fix the insane memory consumption (8 GB on my 4 GB memory machine according to valgrind.)

Jean Delvare <khali>
Tue 20 Jan 2015 11:46:55 AM UTC, comment #1: 

Should be fixed in commit "Fail when out of memory in set_hunkmax()" now.

Andreas Gruenbacher <agruen>
Project Administrator
Tue 20 Jan 2015 07:20:52 AM UTC, original submission:  

Got an other issue which output this before segfault:
patching file util.h

Ran out of memory using Plan A -- trying again...

patching file util.h
Segmentation fault

Use it as 'patch  util.h --input crash.diff'.

Laszlo Boszormenyi (GCS) <gcs>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32871:  crash.tar.gz added by gcs (2KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by khali (Posted a comment)
  • -email is unavailable- added by agruen (Posted a comment)
  • -email is unavailable- added by gcs (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
    2015-01-20 agruen StatusNone => Fixed
        Open/ClosedOpen => Closed
    2015-01-20 gcs Attached File- => Added crash.tar.gz, #32871

    Back to the top


    Powered by Savane 3.5