bugGNU patch - Bugs: bug #44049, Infinite loop while applying patch

 
 

bug #44049: Infinite loop while applying patch

Submitted by:  Laszlo Boszormenyi (GCS) <gcs>
Submitted on:  Mon 19 Jan 2015 06:36:04 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.

 

Tue 20 Jan 2015 09:16:06 AM UTC, comment #3:

Please try the attached patch.

(file #32872)

Andreas Gruenbacher <agruen>
Project Administrator
Tue 20 Jan 2015 12:19:34 AM UTC, comment #2:

May I expect a fix?

Laszlo Boszormenyi (GCS) <gcs>
Mon 19 Jan 2015 11:14:28 PM UTC, comment #1:

It's not technically an infinite loop, patch is just stupid and tries to match the first hunk at line 99999999999913, 99999999999912, 99999999999911, etc., which obviously can't work because the file to be patched is only 91 lines long.

Andreas Gruenbacher <agruen>
Project Administrator
Mon 19 Jan 2015 06:36:04 PM UTC, original submission:

With a specific file, patch goes to infinite loop and eats all CPU time.
Please see the attachement and use it as:
patch util.h -i loop.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 #32872:  min-offset.diff added by agruen (2KiB - text/x-patch)
file #32868:  loop.tar.gz added by gcs (2KiB - application/gzip)

 

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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Jan 2015 11:47:16 AM UTCagruenStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 20 Jan 2015 09:16:06 AM UTCagruenAttached File-=>Added min-offset.diff, #32872
    Mon 19 Jan 2015 06:36:04 PM UTCgcsAttached File-=>Added loop.tar.gz, #32868

    Back to the top


    Powered by Savane 3.1-cleanup1