[Bug 7916] New: patch command seg faults on malformed patch

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 10 23:12:36 UTC 2015


https://bugs.busybox.net/show_bug.cgi?id=7916

           Summary: patch command seg faults on malformed patch
           Product: Busybox
           Version: 1.22.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: jkenisto at linux.vnet.ibm.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 5916
  --> https://bugs.busybox.net/attachment.cgi?id=5916
suggested fix

The patch applet dies with a SEGV when presented with the following corrupted
patch.  (Note the missing hyphen on line 1.)
-- dwarves.orig 2015-02-25 01:45:27.753000000 +0000
+++ dwarves     2015-02-25 01:46:08.199000000 +0000
@@ -1,7 +1,7 @@
 Bashful
 Doc
 Dopey
-Grouchy
+Grumpy
 Happy
 Sleepy
 Sneezy

For comparison, GNU patch silently does what's apparently wanted, based on the
"+++" line.

The attached patch fixes this bug.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list