elecharny commented on PR #336:
URL:
https://github.com/apache/directory-ldap-api/pull/336#issuecomment-5808763532
I'm pretty sure that the function:
```
private static char toLowerCaseChar( char c )
{
return ( c < TO_LOWER_CASE.length ) ? TO_LOWER_CASE[c] : c;
}
```
will throw a AOOBE if we pass \u8000 as a char (or any char which b16 is set
to 1).
Something like:
```
private static char toLowerCaseChar( char c )
{
return ( ( c & 0x00FF) < TO_LOWER_CASE.length ) ? TO_LOWER_CASE[c]
: c;
}
```
would probably be better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]