ICU-1754 u_parseString() allow the input to be NUL-terminated
X-SVN-Rev: 7906
This commit is contained in:
parent
efe9c23d9f
commit
bae87c5158
@ -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…
Reference in New Issue
Block a user