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

Submitter:  Laszlo Boszormenyi (GCS) <gcs>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup

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

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)

    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 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.12.
    Corresponding source code