Home Dashboard Directory Help
Search

Buffer overrun in CRichEditCtrl::GetTextRange with MBCS by thudbang


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 630199
Opened: 12/9/2010 12:36:03 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

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.
Details
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)
Sign in to post a workaround.