bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #37878] index out of bounds when handling a file contains '(' and n


From: anonymous
Subject: [bug #37878] index out of bounds when handling a file contains '(' and not ends with ')'
Date: Fri, 07 Dec 2012 02:34:56 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11

URL:
  <http://savannah.gnu.org/bugs/?37878>

                 Summary: index out of bounds when handling a file contains
'('  and not ends with ')'
                 Project: make
            Submitted by: None
            Submitted on: 2012년 12월 07일 (금) 오전 02시 34분 54초
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

-----------------------------------------------------------------
read.c:3023

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
    ..recipe..


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.













    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37878>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]