stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-755) [HP aCC 6.16] Potential null pointer dereference in locale.cpp
Date Thu, 17 Apr 2008 11:09:21 GMT

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

Farid Zaripov commented on STDCXX-755:
--------------------------------------

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

> [HP aCC 6.16] Potential null pointer dereference in locale.cpp
> --------------------------------------------------------------
>
>                 Key: STDCXX-755
>                 URL: https://issues.apache.org/jira/browse/STDCXX-755
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Test Driver
>    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
>            Assignee: Travis Vitek
>             Fix For: 4.2.1
>
>   Original Estimate: 2h
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> When compiled with HP aCC 6.16 with the {{+w}} option, the  [locale.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/src/locale.cpp]
test driver source file produces a bunch of warnings (and remarks):
> {noformat}
> aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/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 +W4296 +W4297 +W3348 \
>     $(TOPDIR)/tests/src/locale.cpp
> "$(TOPDIR)/include/limits", line 449: warning #4070-D: floating point underflow exception
>       _RWSTD_STATIC_FUN (long double, (min), _RWSTD_LDBL_MIN) 
>       ^
> "$(TOPDIR)/tests/src/locale.cpp", line 1534: remark #4298-D: addition result could be
truncated before cast to bigger sized type
>               offset += (len + 1);
>                              ^
> "$(TOPDIR)/tests/src/locale.cpp", line 380, procedure rw_locales: warning #20200-D: Potential
null pointer dereference through slocname is detected (null definition:$(TOPDIR)/tests/src/locale.cpp,
line 375)
> "$(TOPDIR)/tests/src/locale.cpp", line 472, procedure rw_locales: warning #20200-D: Potential
null pointer dereference through  return of call to malloc is detected (null definition:$(TOPDIR)/tests/src/locale.cpp,
line 469)
> "$(TOPDIR)/tests/src/locale.cpp", line 1215, procedure _rw_all_locales: warning #20206-D:
Out of bound access (In expression "strcpy((char*)entry->locale_name, (char*)locale)",
entry->locale_name (type: char [64]) has byte range [0 .. 63], writing byte range [0 ..
127].)
> {noformat}

-- 
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