Share

UTF-8 CPP

Tracker: Bugs

4 dereference invalid iterator - ID: 2857454
Last Update: Settings changed ( ntrifunovic )

dereference invalid iterator when lead surrogate was last element of the
string.

I've attach patch against <a
href="http://sourceforge.net/tracker/?func=detail&aid=2852872&group_id=1718
08&atid=859344">my previous report</a>.

--
Ivan Sorokin


Nobody/Anonymous ( nobody ) - 2009-09-12 11:23

4

Closed

Fixed

Nobody/Anonymous

Functionality

None

Public


Comments ( 4 )

Date: 2009-10-31 16:31
Sender: ntrifunovicProject Admin

Fixed in Release 2.2.4


Date: 2009-10-29 01:04
Sender: ntrifunovicProject Admin

Reproduced with MSVC++ 9.0. Not reproducable with GNU gcc 4.4.


Date: 2009-09-27 18:44
Sender: ntrifunovicProject Admin

Not a bug - if a lead surrogate pair is the last code unit in a string,
invalid utf-16 exception is thrown.


Date: 2009-09-27 18:41
Sender: nobody

The exception is correct - last lead surrogate is invalid utf-16.


Attached File ( 1 )

Filename Description Download
invalid_iterator_deref_fix.diff Download

Changes ( 16 )

Field Old Value Date By
close_date - 2009-10-31 16:31 ntrifunovic
allow_comments 1 2009-10-31 16:31 ntrifunovic
resolution_id Accepted 2009-10-31 16:31 ntrifunovic
status_id Open 2009-10-31 16:31 ntrifunovic
close_date 2009-09-27 18:44 2009-10-29 01:04 ntrifunovic
allow_comments 0 2009-10-29 01:04 ntrifunovic
priority 6 2009-10-29 01:04 ntrifunovic
resolution_id Works For Me 2009-10-29 01:04 ntrifunovic
status_id Closed 2009-10-29 01:04 ntrifunovic
close_date - 2009-09-27 18:44 ntrifunovic
allow_comments 1 2009-09-27 18:44 ntrifunovic
resolution_id None 2009-09-27 18:44 ntrifunovic
status_id Open 2009-09-27 18:44 ntrifunovic
priority 5 2009-09-26 00:09 ntrifunovic
category_id None 2009-09-26 00:09 ntrifunovic
File Added 342684: invalid_iterator_deref_fix.diff 2009-09-12 11:23 nobody