Vs2010 x64 C and C++ program crashes when string literal are not modified - by Vipin Jain

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 577724 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 7/23/2010 7:40:10 AM
Access Restriction Public


Program is crashing even though it does not modify the string literal when compiled with  VS2010 native x64 compiler with /O2 option. 
Sign in to post a comment.
Posted by Microsoft on 8/17/2010 at 5:41 PM
Hello. Thank you for your bug report. This is, indeed, an error in the generated code. This error will be fixed in a future release. In the meantime, please use the workaround suggested by jain_vipin_swim - passing a variable instead of a literal string should avoid the problem area.

Thank you.

Mark Levine
Dev Lead - Visual C++
Posted by Microsoft on 7/26/2010 at 1:44 AM
Thank you for reporting the issue.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.These specialized experts will follow-up with your issue.
Posted by Microsoft on 7/24/2010 at 7:07 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by ildjarn on 7/23/2010 at 8:01 AM
Verified in VC++ 2010 x64. Analysis of this issue has been discussed on the Visual C++ forums; see http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/0a200af3-98c8-4d06-b32b-804a6272070a