mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-1754 u_parseString() allow the input to be NUL-terminated
X-SVN-Rev: 7906
This commit is contained in:
parent
efe9c23d9f
commit
bae87c5158
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ u_parseString(const char *s,
|
|||
|
||||
/* read one code point */
|
||||
value=(uint32_t)uprv_strtoul(s, &end, 16);
|
||||
if(end<=s || (*end!=' ' && *end!='\t' && *end!=';') || value>=0x110000) {
|
||||
if(end<=s || (*end!=' ' && *end!='\t' && *end!=';' && *end!=0) || value>=0x110000) {
|
||||
*pErrorCode=U_PARSE_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue