Date: Thu, 14 Nov 2013 00:06:45 +0000 (UTC) From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258113 - head/contrib/bmake/lst.lib Message-ID: <201311140006.rAE06j2J056221@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sjg Date: Thu Nov 14 00:06:44 2013 New Revision: 258113 URL: http://svnweb.freebsd.org/changeset/base/258113 Log: Avoid SEGV when passed NULL for list Modified: head/contrib/bmake/lst.lib/lstMember.c Modified: head/contrib/bmake/lst.lib/lstMember.c ============================================================================== --- head/contrib/bmake/lst.lib/lstMember.c Thu Nov 14 00:02:18 2013 (r258112) +++ head/contrib/bmake/lst.lib/lstMember.c Thu Nov 14 00:06:44 2013 (r258113) @@ -58,6 +58,9 @@ Lst_Member(Lst l, void *d) List list = l; ListNode lNode; + if (list == NULL) { + return NULL; + } lNode = list->firstPtr; if (lNode == NULL) { return NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311140006.rAE06j2J056221>