bugGNU patch - Bugs: bug #44139, infinite loop case #2

 
 

bug #44139: infinite loop case #2

Submitted by:  Laszlo Boszormenyi (GCS) <gcs>
Submitted on:  Sat 31 Jan 2015 04:55:02 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.

 

Sat 31 Jan 2015 09:19:35 PM UTC, comment #1:

With this parser code, it's no surprise that there are bugs. The problem here was that intuit_diff_type() was saying that this string with different indentation on the first and second line:

" *******\n** "

is the beginning of a context diff. But another_hunk() didn't think so, sending patch into a loop.

Fixed in commit 38d87ecb.

Andreas Gruenbacher <agruen>
Project Administrator
Sat 31 Jan 2015 04:55:02 PM UTC, original submission:

Release 2.7.3 still goes to an infinite loop with the attached patch when used as: "patch any.h -i loop2.patch".

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 #32956:  loop2.patch added by gcs (373B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -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
    Sat 31 Jan 2015 09:19:35 PM UTCagruenStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 31 Jan 2015 04:55:02 PM UTCgcsAttached File-=>Added loop2.patch, #32956

    Back to the top


    Powered by Savane 3.1-cleanup1