bugGNU patch - Bugs: bug #43700, patch with large line number...


bug #43700: patch with large line number crashes

Submitted by:  Hanno Boeck <hanno>
Submitted on:  Tue 25 Nov 2014 11:17:56 PM 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.


Sun 30 Nov 2014 09:46:22 PM UTC, comment #1:

Thanks, this is fixed in commit 7a988615.

Andreas Gruenbacher <agruen>
Project Administrator
Tue 25 Nov 2014 11:17:56 PM UTC, original submission:

A patch with a very large line number will cause patch to crash. See attachmend.

I got this from this thread from openbsd:

While it seems bsd's patch and GNU patch are different codes the bug appears in both. valgrind output indicates this causes an out of bounds write, so it's likely security relevant.

Hanno Boeck <hanno>


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

Attach File(s):

Attached Files
file #32545:  crash.patch added by hanno (65B - text/x-patch - crash.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 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
    Sun 30 Nov 2014 09:46:22 PM UTCagruenStatusNone=>Fixed
    Tue 25 Nov 2014 11:17:56 PM UTChannoAttached File-=>Added crash.patch, #32545

    Back to the top

    Powered by Savane 3.1-cleanup1