You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/02/14 00:25:08 UTC

[jira] Created: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc

[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: Trivial
             Fix For: 4.2.1


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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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.


[jira] Updated: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-729:
--------------------------------

    Remaining Estimate: 1h  (was: 0h)

Need more time to fix this.

> [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: 1h
>
> 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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.


[jira] Updated: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc

Posted by "Martin Sebor (JIRA)" <ji...@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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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.


[jira] Commented: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580069#action_12580069 ] 

Martin Sebor commented on STDCXX-729:
-------------------------------------

Looks like the fix committed in [r627612|http://svn.apache.org/viewvc?view=rev&revision=627612] got reverted in [r631410|http://svn.apache.org/viewvc?view=rev&revision=631410] committed to silence a (gcc?) warning...

See also this [post|http://www.nabble.com/RE%3A-svn-commit%3A-r631410----stdcxx-trunk-include-loc-_money_put.cc-tt15702139.html].

> [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: Trivial
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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.


[jira] Commented: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589901#action_12589901 ] 

Farid Zaripov commented on STDCXX-729:
--------------------------------------

Changes in r627612 merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752

> [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: 1h
>
> 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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.


[jira] Closed: (STDCXX-729) [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor closed STDCXX-729.
-------------------------------

    Resolution: Fixed

Both aCC and gcc warnings carefully silenced (again) in [r651012|http://svn.apache.org/viewvc?rev=651012&view=rev].

> [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: 1h
>
> 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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<char, std::char_traits<char>>]" 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.