Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.2.1
-
None
-
HP aCC 6.16 with +wsecurity
-
Compiler Warning
Description
Compiling the library with HP aCC 6.16 with the +wsecurity option emits the following warnings:
aCC -c -mt -I/amd/devco/sebor/stdcxx-4.2.x/include -I/build/sebor/stdcxx-4.2.x-aCC-6.16-12D-ipo/include \ -AA +O2 +DD64 -ipo +tls=static +w +wsecurity +wendian +W392,655,684,818,819,849 \ +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 \ +W4255,4272,4284,4285,4286,4296,4297 +W3348 +Z \ /amd/devco/sebor/stdcxx-4.2.x/src/setlocale.cpp "/amd/devco/sebor/stdcxx-4.2.x/src/setlocale.cpp", line 168, procedure __rw::__rw_locale_name: warning #20119-D: (SECURITY) Unsafe API 'strcpy' is used. Buffer overflow is not checked when copying to target buffer. Consider using 'strncpy'. "/amd/devco/sebor/stdcxx-4.2.x/src/setlocale.cpp", line 182, procedure __rw::__rw_locale_name: warning #20119-D: (SECURITY) Unsafe API 'strcpy' is used. Buffer overflow is not checked when copying to target buffer. Consider using 'strncpy'. "/amd/devco/sebor/stdcxx-4.2.x/src/setlocale.cpp", line 193, procedure __rw::__rw_locale_name: warning #20119-D: (SECURITY) Unsafe API 'strcpy' is used. Buffer overflow is not checked when copying to target buffer. Consider using 'strncpy'.