From 3647395dd2c72b2a91f6c669b6cdb66420d69e16 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 29 Sep 2007 08:37:34 +0000 Subject: [PATCH] makedepend 1.0.1 --- util/makedepend/AUTHORS | 2 +- util/makedepend/ChangeLog | 10 ++++++++++ util/makedepend/parse.c | 9 +++++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/util/makedepend/AUTHORS b/util/makedepend/AUTHORS index fdcbc781c..61a9a69bd 100644 --- a/util/makedepend/AUTHORS +++ b/util/makedepend/AUTHORS @@ -16,4 +16,4 @@ Additional contributors: Mark Snitily Alexander Stohr -$XdotOrg: $ \ No newline at end of file +$XdotOrg: $ÿÿÿÿÿÿÿÿ \ No newline at end of file diff --git a/util/makedepend/ChangeLog b/util/makedepend/ChangeLog index 1075e268c..132124d2a 100644 --- a/util/makedepend/ChangeLog +++ b/util/makedepend/ChangeLog @@ -1,3 +1,13 @@ +2007-03-21 Jeremy C. Reed + + * configure.ac: + Update version for release. + +2006-06-02 Alan Coopersmith + + * parse.c (slookup): + Coverity #925: Pointer "file" dereferenced before NULL check + 2005-12-14 Kevin E. Martin * configure.ac: diff --git a/util/makedepend/parse.c b/util/makedepend/parse.c index 935c61df7..52482931c 100644 --- a/util/makedepend/parse.c +++ b/util/makedepend/parse.c @@ -429,9 +429,14 @@ struct symtab ** slookup(char *symbol, struct inclist *file) { register int first = 0; - register int last = file->i_ndefs - 1; + register int last; - if (file) while (last >= first) + if (file == NULL) + return NULL; + + last = file->i_ndefs - 1; + + while (last >= first) { /* Fast inline binary search */ register char *s1;