stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-747) [HP aCC 6.16] Potential null pointer dereference in locale_name.cpp
Date Tue, 18 Mar 2008 20:19:24 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580056#action_12580056
] 

Martin Sebor commented on STDCXX-747:
-------------------------------------

Here's the warning we get out of [locale.name.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/src/locale_name.cpp]
in nightly builds:

{noformat}
aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include  -AA  +O2  +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  +Z  $(TOPDIR)/src/locale_name.cpp
"$(TOPDIR)/src/locale_body.h", line 254: remark #4296-D: arithmetic operation on boolean type
          *__facet._C_pid * 2 - 1 + (0 != __facet._C_name);
                                    ^

"$(TOPDIR)/src/locale_name.cpp", line 86: remark #4271-D: type conversion may lose sign
              result.append (catnm, next - catnm);
                                    ^

"$(TOPDIR)/src/locale_name.cpp", line 88: remark #4296-D: arithmetic operation on boolean
type
              catnm = next + !!*next;
                             ^

"$(TOPDIR)/src/locale_name.cpp", line 69, procedure name: warning #20200-D: Potential null
pointer dereference through catnm is detected (null definition:$(TOPDIR)/src/locale_name.cpp,
line 69)
{noformat}

> [HP aCC 6.16] Potential null pointer dereference in locale_name.cpp
> -------------------------------------------------------------------
>
>                 Key: STDCXX-747
>                 URL: https://issues.apache.org/jira/browse/STDCXX-747
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 22. Localization
>    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: Scott (Yu) Zhong
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message