C++ Standard Library
  1. C++ Standard Library
  2. STDCXX-1013

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.2
    • Component/s: 22. Localization
    • Labels:
      None
    • Environment:

      HP aCC 6.16 with +wsecurity

    • Severity:
      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'.
      

        Activity

        Martin Sebor created issue -
        Martin Sebor made changes -
        Field Original Value New Value
        Assignee Martin Sebor [ sebor ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Sebor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development