From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout.scc.kit.edu (scc-mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p9FF2oWx022156 for ; Sat, 15 Oct 2011 11:02:51 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02 with esmtp (Exim 4.72 #1) id 1RF5lB-0007Gt-9f; Sat, 15 Oct 2011 17:02:49 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1RF5lB-0004Av-BX for tech@mdocml.bsd.lv; Sat, 15 Oct 2011 17:02:49 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1RF5lB-0003pZ-A5 for tech@mdocml.bsd.lv; Sat, 15 Oct 2011 17:02:49 +0200 Received: from schwarze by usta.de with local (Exim 4.72) (envelope-from ) id 1RF5lB-0000qC-8z for tech@mdocml.bsd.lv; Sat, 15 Oct 2011 17:02:49 +0200 Date: Sat, 15 Oct 2011 17:02:49 +0200 From: Ingo Schwarze To: tech@mdocml.bsd.lv Subject: Re: mdocml version 1.12.0 available Message-ID: <20111015150249.GB2496@iris.usta.de> References: <4E90B130.3080008@bsd.lv> <20111011145641.GA25314@britannica.bec.de> <20111013005045.GH28987@iris.usta.de> <20111013095525.GM26743@acme.spoerlein.net> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20111013095525.GM26743@acme.spoerlein.net> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Ulrich, Ulrich Spörlein wrote on Thu, Oct 13, 2011 at 11:55:25AM +0200: > On Thu, 2011-10-13 at 02:50:45 +0200, Ingo Schwarze wrote: >> Joerg Sonnenberger wrote on Tue, Oct 11, 2011 at 04:56:41PM +0200: >>> /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/mdoc_term.c:617:7: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'n') >>> if (n->prev && MDOC_It == n->prev->tok) { >>> ^ >>> /home/joerg/work/NetBSD/cvs/src/external/bsd/mdocml/bin/mandoc/../../dist/mdoc_term.c:611:7: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'n') >>> if (n->prev && MDOC_It == n->prev->tok) >>> ^ >> I have no idea why clang thinks n might be NULL here. >> Do you understand that? >> Or is this just a false positive? > print_bvspace could have been called with n being NULL. No, i just checked all callers. All callers access n before calling print_bvspace, so it's a false positive. > Perhaps the HTML > report is little bit more helpful: > https://www.spoerlein.net/scan-build/mdocml/2011-10-13-1/report-qHe1Tf.html#EndPath Not really, but i consider this settled all the same. Thanks, Ingo -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv