Issue Details (XML | Word | Printable)

Key: STDCXX-1013
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[HP aCC 6.16] +wsecurity warnings in setlocale.cpp

Created: 06/Sep/08 07:55 PM   Updated: 02/Dec/08 03:05 AM
Return to search
Component/s: 22. Localization
Affects Version/s: 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 1h
Original Estimate - 1h
Remaining Estimate: 1h
Remaining Estimate - 1h
Time Spent: Not Specified
Remaining Estimate - 1h

Environment: HP aCC 6.16 with +wsecurity

Severity: Compiler Warning


 Description  « Hide
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'.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.