[ https://issues.apache.org/jira/browse/STDCXX-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531548 ]
Farid Zaripov commented on STDCXX-69: ------------------------------------- This bug has been fixed in MSVC 9.0 beta2. > [MSVC 6,8] wcsxfrm (s1, s2, 0) writes past the end of the destination buffer > ---------------------------------------------------------------------------- > > Key: STDCXX-69 > URL: https://issues.apache.org/jira/browse/STDCXX-69 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Affects Versions: 4.1.2 > Environment: MSVC 6, 8 > Reporter: Martin Sebor > > When compiled with MSVC 6 and 8 (but not 7.1), the program below segfaults at > runtime: > $ cat t.cpp ; cl t.cpp && ./t.exe > #include <locale.h> > #include <wchar.h> > int main () > { > if (setlocale (LC_COLLATE, "ENU")) > wcsxfrm (0, L"\x83", 0); > } > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 > Copyright (C) Microsoft Corp 1984-1998. All rights reserved. > t.cpp > t.cpp(8) : warning C4508: 'main' : function should return a value; 'void' > return type assumed > Microsoft (R) Incremental Linker Version 6.00.8447 > Copyright (C) Microsoft Corp 1992-1998. All rights reserved. > /out:t.exe > t.obj > [1] + Done(139) cat t.cpp ; cl t.cpp && ./t.exe > 527 Segmentation violation ./t.exe -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.