mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-3280 fail on out-of-range Unicode escape
X-SVN-Rev: 13234
This commit is contained in:
parent
a75bbfba1c
commit
70e5463428
1 changed files with 3 additions and 0 deletions
|
@ -1478,6 +1478,9 @@ u_unescapeAt(UNESCAPE_CHAR_AT charAt,
|
|||
}
|
||||
++(*offset);
|
||||
}
|
||||
if (result < 0 || result >= 0x110000) {
|
||||
goto err;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue