From 4a1e955f9ca22a2a26d30e9e6ad24e37f9733011 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sat, 25 Aug 2001 01:07:45 +0000 Subject: [PATCH] ICU-770 Fixed memory access problem. X-SVN-Rev: 5583 --- icu4c/source/common/ucnv2022.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icu4c/source/common/ucnv2022.c b/icu4c/source/common/ucnv2022.c index f95bf71980..1dd43a3d4c 100644 --- a/icu4c/source/common/ucnv2022.c +++ b/icu4c/source/common/ucnv2022.c @@ -1008,6 +1008,7 @@ T_UConverter_toUnicode_ISO_2022(UConverterToUnicodeArgs *args, args->flush, err); args->converter = saveThis; + myData->isFirstBuffer = FALSE; } if((myData->isFirstBuffer) && (args->source[0]!=(char)ESC_2022) && (myData->currentConverter==NULL)){ @@ -1100,6 +1101,8 @@ T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC(UConverterToUnicodeArgs* args, args->flush, err); + myData->isFirstBuffer = FALSE; + args->converter = saveThis; { int32_t lim = args->target - myTargetStart;