]> granicus.if.org Git - icu/commitdiff
ICU-12015 Update the array size to avoid buffer overflow
authorMichael Ow <mow@svn.icu-project.org>
Thu, 21 Jan 2016 19:49:39 +0000 (19:49 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 21 Jan 2016 19:49:39 +0000 (19:49 +0000)
X-SVN-Rev: 38185

icu4c/source/common/ucnv_err.c

index 0fb14f0647025475d278a2c57f5f92eac43c7b1b..f0fbfff7d9e84a840d7c0a470a97f40c05f2e038 100644 (file)
@@ -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