From fbff04a4d09bfd68923e82ba4798b74f5f228ef4 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Thu, 21 Jan 2016 19:49:39 +0000 Subject: [PATCH] ICU-12015 Update the array size to avoid buffer overflow X-SVN-Rev: 38185 --- icu4c/source/common/ucnv_err.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0