bugmake - Bugs: bug #37878, index out of bounds when handling...


bug #37878: index out of bounds when handling a file contains '(' and not ends with ')'

Submitted by:  None
Submitted on:  Fri 07 Dec 2012 02:34:54 AM UTC  
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.82Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun 13 Jan 2013 05:41:24 PM UTC, comment #2:

This bug has already been fixed; the fix will be available in the next release of GNU make.

Paul D. Smith <psmith>
Project Administrator
Fri 07 Dec 2012 03:21:37 AM UTC, comment #1:
junhee cho <zlqhem>
Fri 07 Dec 2012 02:34:54 AM UTC, original submission:


if (! (flags & PARSEFS_NOAR)
&& tp == tmpbuf && tp[0] != '(' && tp[nlen=1] != ')')
should be '=='

It occurs indexing out of bounds when handling the following prerequisite detected. Above if condition becomes true
even if the file is not a form of archive member reference.

target: this_is_a_target_not_archive_memeber_reference(blah).jpeg

read.c: 3034
e = next_token (e); // At here, index out of bounds occurs

I've used electric fence (http://perens.com/FreeSoftware/ElectricFence/) for detecting this.



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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by zlqhem (Posted a comment)

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Jan 2013 05:41:24 PM UTCpsmithStatusNone=>Duplicate

    Back to the top

    Powered by Savane 3.1-cleanup