From b4bf8c7064f0934180e6723c7b2ae91cf2c5909e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 1 Apr 2009 09:49:25 +0000 Subject: * strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by at least two chars and the next byte is a valid UTF-8 start byte before trying to convert the followup bytes as UTF-8 sequence. --- winsup/cygwin/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/cygwin/ChangeLog') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8931199cb..aca51ddb0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2009-04-01 Corinna Vinschen + + * strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by at + least two chars and the next byte is a valid UTF-8 start byte before + trying to convert the followup bytes as UTF-8 sequence. + 2009-03-31 Corinna Vinschen * shm.cc (struct shm_attached_list): Convert access type to ULONG. -- cgit v1.2.3