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 2024/05/28 14:21:00 UTC

[jira] [Updated] (DIRAPI-402) unhandled exception (ArrayIndexOutOfBoundsException) in LDAP URL parser

     [ https://issues.apache.org/jira/browse/DIRAPI-402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lécharny updated DIRAPI-402:
-------------------------------------
    Fix Version/s: 2.1.7

> unhandled exception (ArrayIndexOutOfBoundsException) in LDAP URL parser
> -----------------------------------------------------------------------
>
>                 Key: DIRAPI-402
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-402
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Andrey Slepykh
>            Priority: Major
>             Fix For: 2.1.7
>
>         Attachments: ReproducerIndexOutOfRange.java
>
>
> Hi, we have found another unhandled exception (ArrayIndexOutOfBoundsException) in LDAP URL parser version 2.1.6.
> Steps to reproduce:
> 1. Download Apache Directory LDAP API v2.1.6:
> {code:java}
> wget wget https://github.com/apache/directory-ldap-api/archive/refs/tags/2.1.6.tar.gz
> tar xf 2.1.6.tar.gz && rm 2.1.6.tar.gz{code}
> 2. Compile the project (we used jdk-11 and mvn-3.9.6):
> {code:java}
> cd directory-ldap-api-2.1.6
> mvn clean package{code}
> 3. Get the reproducer:
> {code:java}
> mkdir fuzz && cd fuzz
> mv <path/to/reproducer>/ReproducerIndexOutOfRange.java .{code}
> 4. Compile the reproducer
> {code:java}
> javac -cp ../ldap/model/target/classes/ ./ReproducerIndexOutOfRange.java{code}
> 5. Reproduce the exception:
> {code:java}
> java -cp ../ldap/model/target/classes/:../../jazzer/jazzer_standalone.jar:.:../util/target/classes/:../integ-osgi/target/dependency/slf4j-api-1.7.36.jar:../i18n/target/classes/:../integ-osgi/target/dependency/org.apache.servicemix.bundles.antlr-2.7.7_5.jar ReproducerIndexOutOfRange{code}
>  
> Found by Linux Verification Center (portal.linuxtesting.ru) with jazzer.
> Author L.Reviakin (L.reviakin@fobos-nt.ru)



--
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