Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 33078 invoked from network); 18 Mar 2008 20:51:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 20:51:12 -0000 Received: (qmail 63262 invoked by uid 500); 18 Mar 2008 20:51:10 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 63241 invoked by uid 500); 18 Mar 2008 20:51:10 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 63232 invoked by uid 99); 18 Mar 2008 20:51:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 13:51:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 20:50:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 194F7234C0A7 for ; Tue, 18 Mar 2008 13:49:25 -0700 (PDT) Message-ID: <200701131.1205873365102.JavaMail.jira@brutus> Date: Tue, 18 Mar 2008 13:49:25 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Updated: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc In-Reply-To: <22385609.1202945108011.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-729: -------------------------------- Priority: Minor (was: Trivial) Increased Priority from trivial to Minor since the warning affects every translation unit that #includes the header. > [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc > ----------------------------------------------------------------------------------- > > Key: STDCXX-729 > URL: https://issues.apache.org/jira/browse/STDCXX-729 > Project: C++ Standard Library > Issue Type: Sub-task > Components: Build > Affects Versions: 4.2.0 > Environment: $ uname -sr && aCC -V > HP-UX B.11.31 > aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007] > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Minor > Fix For: 4.2.1 > > Original Estimate: 1h > Time Spent: 1h > Remaining Estimate: 0h > > The compiler (both aCC 6.15 and 6.16) complains about a null pointer dereference in {{money_put}}: > {noformat} > aCC -c -D_RWSTDDEBUG -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -AA -g +d +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 $(TOPDIR)/src/ti_money_put.cpp > "$(TOPDIR)/include/loc/_money_put.cc", line 130: remark #4296-D: arithmetic operation on boolean type > - !__dint - !!__fd - (__dint > 0 ? __dint : -__dint) - __fd > ^ > detected during instantiation of "_OutputIter std::money_put<_CharT, _OutputIter>::_C_put(_OutputIter, int, std::ios_base &, _CharT, const _CharT *, unsigned long, int, const char *, unsigned long) const [with _CharT=char, _OutputIter=std::ostreambuf_iterator>]" at line 322 > "$(TOPDIR)/include/loc/_money_put.cc", line 130: remark #4296-D: arithmetic operation on boolean type > - !__dint - !!__fd - (__dint > 0 ? __dint : -__dint) - __fd > ^ > detected during instantiation of "_OutputIter std::money_put<_CharT, _OutputIter>::_C_put(_OutputIter, int, std::ios_base &, _CharT, const _CharT *, unsigned long, int, const char *, unsigned long) const [with _CharT=char, _OutputIter=std::ostreambuf_iterator>]" at line 322 > "$(TOPDIR)/include/loc/_money_put.cc", line 131: remark #4296-D: arithmetic operation on boolean type > - ( money_base::space == __fmat.field [1] > ^ > detected during instantiation of "_OutputIter std::money_put<_CharT, _OutputIter>::_C_put(_OutputIter, int, std::ios_base &, _CharT, const _CharT *, unsigned long, int, const char *, unsigned long) const [with _CharT=char, _OutputIter=std::ostreambuf_iterator>]" at line 322 > "$(TOPDIR)/include/loc/_money_put.cc", line 94, procedure _C_put: warning #20200-D: Potential null pointer dereference through __pun0 is detected (null definition:$(TOPDIR)/include/loc/_money_put.cc, line 74) > "$(TOPDIR)/include/loc/_money_put.cc", line 90, procedure _C_put: warning #20200-D: Potential null pointer dereference through __pun1 is detected (null definition:$(TOPDIR)/include/loc/_money_put.cc, line 79) > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.