URL: <http://savannah.gnu.org/bugs/?21824>
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 _______________________________________________________ Details: 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: <http://savannah.gnu.org/bugs/?21824> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make