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: 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.

 

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 File(s):
   
   
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
  • -unavailable- added by khali (Posted a comment)
  • -unavailable- added by agruen (Posted a comment)
  • -unavailable- added by gcs (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Jan 2015 11:46:55 AM UTCagruenStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 20 Jan 2015 07:20:52 AM UTCgcsAttached File-=>Added crash.tar.gz, #32871

    Back to the top


    Powered by Savane 3.1-cleanup1