[Top][All Lists]

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

[bug #21824] Another potential NULL ptr dereference, on remake.c

From: Marcio Buss
Subject: [bug #21824] Another potential NULL ptr dereference, on remake.c
Date: Tue, 18 Dec 2007 03:33:52 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071008 (CK-IBM) Firefox/


                 Summary: Another potential NULL ptr dereference, on remake.c
                 Project: make
            Submitted by: marciobuss
            Submitted on: Tuesday 12/18/2007 at 03:33
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None



There's a potential null pointer dereference also in remake.c
The error can be tracked down as follows:

(1) Assume the first conjunct is false in the test
    "if (file->cmds != 0 && file->cmds->any_recurse)"
    This implies that file->cmds is NULL.

(2) item (1) implies that the "if" statement evaluates to
    false, and the else branch executes.

(3) we continue the execution till we get to line 861, where
    "file->cmds" is dereferenced at statement
    "if (! (file->cmds->lines_flags[i-1] & COMMANDS_RECURSE))"


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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