stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-593) purify reports array bounds write error from rw_locales in 22.locale.cons.stdcxx-485 test
Date Fri, 12 Oct 2007 22:40:50 GMT
purify reports array bounds write error from rw_locales in 22.locale.cons.stdcxx-485 test
-----------------------------------------------------------------------------------------

                 Key: STDCXX-593
                 URL: https://issues.apache.org/jira/browse/STDCXX-593
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: Test Driver
            Reporter: Travis Vitek
            Priority: Minor
             Fix For: 4.2.1


When prepending the default locale to the locale name array, the size of the resulting string
is not modified, so later write operations can write past the end of the buffer.

****  Purify instrumented ./22.locale.cons.stdcxx-485 (pid 13090)  ****
ABW: Array bounds write:
  * This is occurring while in thread 13090:
    strcpy         [rtlib.o]
    rw_locales(int, char const*, bool) [locale.cpp:486]
    run_test(int, char**) [22.locale.cons.stdcxx-485.cpp:41]
    *unknown func* [pc=0x808b380]
    rw_test(int, char**, char const*, char const*, char const*, int  (*)(int, char**)) [driver.cpp:1128]
    main           [22.locale.cons.stdcxx-485.cpp:78]
  * Writing 7 bytes to 0x810d72a in the heap (1 byte at 0x810d730 illegal).
  * Address 0x810d72a is 5114 bytes into a malloc'd block at 0x810c330 of 5120 bytes.
  * This block was allocated from thread -1207973632:
    malloc         [rtlib.o]
    rw_locales(int, char const*, bool) [locale.cpp:350]
    run_test(int, char**) [22.locale.cons.stdcxx-485.cpp:41]
    *unknown func* [pc=0x808b380]
    rw_test(int, char**, char const*, char const*, char const*, int  (*)(int, char**)) [driver.cpp:1128]


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


Mime
View raw message