From: Ulrich Drepper Date: Sun, 25 Jul 1999 15:03:25 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.20~19990 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=788e8e7c221825916e6ab11f0079d4c5ede8a057;p=platform%2Fupstream%2Flinaro-glibc.git Update. 1999-07-25 Ulrich Drepper * iconvdata/euc-kr.c (euckr_from_ucs4): Set cp[0] to '\0' in case of an error. Patch by Changwoo Ryu . --- diff --git a/ChangeLog b/ChangeLog index ebf638f..72c8ad6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-07-25 Ulrich Drepper + + * iconvdata/euc-kr.c (euckr_from_ucs4): Set cp[0] to '\0' in case + of an error. Patch by Changwoo Ryu . + 1999-07-24 Ulrich Drepper * iconvdata/ksc5601.h (ksc5601_to_ucs4): Avoid invalid memory diff --git a/iconvdata/euc-kr.c b/iconvdata/euc-kr.c index 4f51170..f74d774 100644 --- a/iconvdata/euc-kr.c +++ b/iconvdata/euc-kr.c @@ -33,6 +33,8 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) cp[0] |= 0x80; cp[1] |= 0x80; } + else + cp[0] = '\0'; } /* XXX Think about 0x5c ; '\'. */ else