Opened 14 years ago

Closed 14 years ago

#101 closed defect (fixed)

New MVC asserts trigger when accessing past last character in a std::string.

Reported by: Norm Olsen Owned by: Norm Olsen
Priority: major Milestone:
Component: Dictionaries Version: svn-trunk
Keywords: WKT string Cc:

Description

It appears that newer releases of the MS VC++ run time library trigger an assert if you try to access characters in a string past the last character, ie if you try to access the character where one would expect the terminating null character to be in a normal character array type of string. Thus, a bug which has been around for ever has been discovered.

Change History (1)

comment:1 by Norm Olsen, 14 years ago

Resolution: fixed
Status: newclosed

Correct via patch suipplied by user. Code in the rcWellKnownText.cpp module was trying to access characters at the end of the string in a manner simnilar to what would be acceptabel for a normal character array, but illegal on a std::string.

Note: See TracTickets for help on using tickets.