From 85d925e1abbada2700eb31a0500ac117d26e0e89 Mon Sep 17 00:00:00 2001 From: ntrifunovic Date: Thu, 29 Oct 2009 01:18:27 +0000 Subject: [PATCH] Fix for the bug ID: 2857454 [dereference invalid iterator] git-svn-id: http://svn.code.sf.net/p/utfcpp/code@105 a809a056-fc17-0410-9590-b4f493f8b08e --- source/utf8/checked.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utf8/checked.h b/source/utf8/checked.h index ddf50b3..ff75eb7 100644 --- a/source/utf8/checked.h +++ b/source/utf8/checked.h @@ -210,7 +210,7 @@ namespace utf8 throw invalid_utf16(static_cast(trail_surrogate)); } else - throw invalid_utf16(static_cast(*start)); + throw invalid_utf16(static_cast(cp)); } // Lone trail surrogate