ICU-3280 fail on out-of-range Unicode escape

X-SVN-Rev: 13234
This commit is contained in:
Alan Liu 2003-09-29 20:42:21 +00:00
parent a75bbfba1c
commit 70e5463428

View file

@ -1478,6 +1478,9 @@ u_unescapeAt(UNESCAPE_CHAR_AT charAt,
}
++(*offset);
}
if (result < 0 || result >= 0x110000) {
goto err;
}
return result;
}