You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org> on 2008/03/13 21:26:24 UTC

[jira] Created: (STDCXX-753) Forming out of bound address in charmap.cpp

Forming out of bound address in charmap.cpp
-------------------------------------------

                 Key: STDCXX-753
                 URL: https://issues.apache.org/jira/browse/STDCXX-753
             Project: C++ Standard Library
          Issue Type: Sub-task
          Components: 20. General Utilities
    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


"/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)


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


[jira] Resolved: (STDCXX-753) [HP aCC 6.16] Forming out of bound address in charmap.cpp

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

Martin Sebor resolved STDCXX-753.
---------------------------------

    Resolution: Fixed

Warning silenced in [r650678|http://svn.apache.org/viewvc?rev=650678&view=rev].

> [HP aCC 6.16] Forming out of bound address in charmap.cpp
> ---------------------------------------------------------
>
>                 Key: STDCXX-753
>                 URL: https://issues.apache.org/jira/browse/STDCXX-753
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 20. General Utilities
>    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: Martin Sebor
>             Fix For: 4.2.1
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> aCC -c    -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/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   /amd/devco/scottz/stdcxx/4.2.x/u
> til/charmap.cpp
> "/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)

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


[jira] Commented: (STDCXX-753) [HP aCC 6.16] Forming out of bound address in charmap.cpp

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

Martin Sebor commented on STDCXX-753:
-------------------------------------

This actually indicates at least a theoretical problem with the utility: the size of the destination buffer used for the conversion to UTF-8 is {{MB_LEN_MAX + 1}} bytes. On HP-UX, the value of {{MB_LEN_MAX}} is 4, which is 2 less than the longest UTF-8 character the utility could otherwise process.

> [HP aCC 6.16] Forming out of bound address in charmap.cpp
> ---------------------------------------------------------
>
>                 Key: STDCXX-753
>                 URL: https://issues.apache.org/jira/browse/STDCXX-753
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 20. General Utilities
>    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: Martin Sebor
>             Fix For: 4.2.1
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> aCC -c    -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/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   /amd/devco/scottz/stdcxx/4.2.x/u
> til/charmap.cpp
> "/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)

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


[jira] Updated: (STDCXX-753) [HP aCC 6.16] Forming out of bound address in charmap.cpp

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

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

    Description: 
aCC -c    -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/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   /amd/devco/scottz/stdcxx/4.2.x/u
til/charmap.cpp

"/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)


  was:
"/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)



add compile line to description 

> [HP aCC 6.16] Forming out of bound address in charmap.cpp
> ---------------------------------------------------------
>
>                 Key: STDCXX-753
>                 URL: https://issues.apache.org/jira/browse/STDCXX-753
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 20. General Utilities
>    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
>
> aCC -c    -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/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   /amd/devco/scottz/stdcxx/4.2.x/u
> til/charmap.cpp
> "/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)

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


[jira] Updated: (STDCXX-753) [HP aCC 6.15] Forming out of bound address in charmap.cpp

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

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

    Summary: [HP aCC 6.15] Forming out of bound address in charmap.cpp  (was: Forming out of bound address in charmap.cpp)

> [HP aCC 6.15] Forming out of bound address in charmap.cpp
> ---------------------------------------------------------
>
>                 Key: STDCXX-753
>                 URL: https://issues.apache.org/jira/browse/STDCXX-753
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 20. General Utilities
>    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/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)

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


[jira] Assigned: (STDCXX-753) [HP aCC 6.16] Forming out of bound address in charmap.cpp

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

Martin Sebor reassigned STDCXX-753:
-----------------------------------

    Assignee: Martin Sebor

> [HP aCC 6.16] Forming out of bound address in charmap.cpp
> ---------------------------------------------------------
>
>                 Key: STDCXX-753
>                 URL: https://issues.apache.org/jira/browse/STDCXX-753
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 20. General Utilities
>    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: Martin Sebor
>             Fix For: 4.2.1
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> aCC -c    -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/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   /amd/devco/scottz/stdcxx/4.2.x/u
> til/charmap.cpp
> "/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)

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


[jira] Updated: (STDCXX-753) [HP aCC 6.16] Forming out of bound address in charmap.cpp

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

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

    Summary: [HP aCC 6.16] Forming out of bound address in charmap.cpp  (was: [HP aCC 6.15] Forming out of bound address in charmap.cpp)

> [HP aCC 6.16] Forming out of bound address in charmap.cpp
> ---------------------------------------------------------
>
>                 Key: STDCXX-753
>                 URL: https://issues.apache.org/jira/browse/STDCXX-753
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: 20. General Utilities
>    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/util/charmap.cpp", line 222, procedure convert_to_ucs: warning #20208-D: Forming out of bound address (In expression "(const unsigned char*)utf8_enc+num_bytes+-1", variable "utf8_enc" [/amd/devco/scottz/stdcxx/4.2.x/util/charmap.cpp:674] (type: char [5]) has byte range [0 .. 4], forming address byte range [-1 .. 5].)

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