From ad865ff7e7058c3accdb0e2efcce7523b536dff6 Mon Sep 17 00:00:00 2001 From: John Emmons Date: Fri, 29 Oct 2010 15:41:56 +0000 Subject: [PATCH] ICU-8097 Fix buffer overflow problems in uscript_getCode() X-SVN-Rev: 28953 --- icu4c/source/common/uscript.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/uscript.c b/icu4c/source/common/uscript.c index 5da2d49743..2a7000431f 100644 --- a/icu4c/source/common/uscript.c +++ b/icu4c/source/common/uscript.c @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (C) 1997-2008, International Business Machines +* Copyright (C) 1997-2010, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * @@ -62,7 +62,7 @@ uscript_getCode(const char* nameOrAbbrOrLocale, u_UCharsToChars(name,cName,len); code = (UScriptCode) u_getPropertyValueEnum(UCHAR_SCRIPT, cName); /* got the script code now fill in the buffer */ - if(numFilled<=capacity){ + if(numFilled