Buffer overrun in CRichEditCtrl::GetTextRange with MBCS - by thudbang

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.


1
0
Sign in
to vote
ID 630199 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/9/2010 12:36:03 PM
Access Restriction Public

Description

This is similar to a problem that GetSelText used to have.  The GetTextRange only allocates "nLast - nFirst + 1" characters, but it needs to double that because every character can take up two bytes in MBCS.
Sign in to post a comment.
Posted by Microsoft on 1/18/2011 at 4:38 PM
Hello,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 12/10/2010 at 1:31 AM
Thanks for your feedback.
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 12/9/2010 at 1:24 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)