From: Michael Ow Date: Thu, 21 Jan 2016 19:49:39 +0000 (+0000) Subject: ICU-12015 Update the array size to avoid buffer overflow X-Git-Tag: milestone-59-0-1~731 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbff04a4d09bfd68923e82ba4798b74f5f228ef4;p=icu ICU-12015 Update the array size to avoid buffer overflow X-SVN-Rev: 38185 --- diff --git a/icu4c/source/common/ucnv_err.c b/icu4c/source/common/ucnv_err.c index 0fb14f06470..f0fbfff7d9e 100644 --- a/icu4c/source/common/ucnv_err.c +++ b/icu4c/source/common/ucnv_err.c @@ -1,7 +1,7 @@ /* ***************************************************************************** * - * Copyright (C) 1998-2014, International Business Machines + * Copyright (C) 1998-2016, International Business Machines * Corporation and others. All Rights Reserved. * ***************************************************************************** @@ -26,7 +26,7 @@ #include "unicode/ucnv.h" #include "ustrfmt.h" -#define VALUE_STRING_LENGTH 32 +#define VALUE_STRING_LENGTH 48 /*Magic # 32 = 4(number of char in value string) * 8(max number of bytes per char for any converter) */ #define UNICODE_PERCENT_SIGN_CODEPOINT 0x0025 #define UNICODE_U_CODEPOINT 0x0055