You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2026/09/28 21:30:00 UTC
[jira] [Resolved] (DIRAPI-467) Strings.toLowerCase(byte[]) crashes on non-ASCII attribute id from network
[ https://issues.apache.org/jira/browse/DIRAPI-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lécharny resolved DIRAPI-467.
--------------------------------------
Resolution: Fixed
Fixed with commit f3a565a5ab868279d64fe651caeb25acb6b2e034
> Strings.toLowerCase(byte[]) crashes on non-ASCII attribute id from network
> --------------------------------------------------------------------------
>
> Key: DIRAPI-467
> URL: https://issues.apache.org/jira/browse/DIRAPI-467
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 2.1.8
> Reporter: Emmanuel Lécharny
> Priority: Major
> Fix For: 2.1.9
>
>
> A client searches a hostile server (or *MITM*'d plaintext session); the server responds with a _SearchResultEntry_ whose attribute-description *TLV* contains _bytes \{0x63, 0xC3, 0xA9\}_.
> Strings.toLowerCase indexes TO_LOWER_CASE_BYTE[-61] and throws AIOOBE, which escapes the decoder as a RuntimeException; application code catching only LdapException mishandles or crashes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org