ICU-770 Fixed memory access problem.

X-SVN-Rev: 5583
This commit is contained in:
George Rhoten 2001-08-25 01:07:45 +00:00
parent 8f861608d6
commit 4a1e955f9c

View File

@ -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;