[ 
https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott (Yu) Zhong updated STDCXX-781:
------------------------------------

    Description: 
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure 
main: warning #20206-D: Out of bound access (In expression 
"&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0+1", 
&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct 
__rw::__string_ref<std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::traits_type, std::basic_string<int, 
std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range 
[0 .. 23], reading byte range [24 .. 47].)

"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure 
main: warning #20208-D: Forming out of bound address (In expression "(const 
int*)(&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", 
&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: 
struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::traits_type, std::basic_string<int, 
std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by 
&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte 
range [0 .. 23], forming address byte range [28 .. 31].)


  was:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure 
main: warning #20206-D: Out of bound access (In expression 
"&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", 
&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct 
__rw::__string_ref<std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::traits_type, std::basic_string<int, 
std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range 
[0 .. 23], reading byte range [24 .. 47].)

"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure 
main: warning #20208-D: Forming out of bound address (In expression "(const 
int*)(&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", 
&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: 
struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::traits_type, std::basic_string<int, 
std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by 
&(&std::basic_string<int, std::char_traits<int>, 
std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte 
range [0 .. 23], forming address byte range [28 .. 31].)



> [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out 
> of bound address in _traits.h
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-781
>                 URL: https://issues.apache.org/jira/browse/STDCXX-781
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Tests
>    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: 2h
>  Remaining Estimate: 2h
>
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure 
> main: warning #20206-D: Out of bound access (In expression 
> "&(&std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0+1", 
> &(&std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: 
> struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::value_type, std::basic_string<int, 
> std::char_traits<int>, std::allocator<int>>::traits_type, 
> std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading 
> byte range [24 .. 47].)
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure 
> main: warning #20208-D: Forming out of bound address (In expression "(const 
> int*)(&(&std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", 
> &(&std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: 
> struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::value_type, std::basic_string<int, 
> std::char_traits<int>, std::allocator<int>>::traits_type, 
> std::basic_string<int, std::char_traits<int>, 
> std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, 
> std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler 
> generated undef>_0) has byte range [0 .. 23], forming address byte range [28 
> .. 31].)

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

Reply via email to