[
https://issues.apache.org/jira/browse/ARTEMIS-5668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032551#comment-18032551
]
Justin Bertram commented on ARTEMIS-5668:
-----------------------------------------
As far as I can tell all the exceptions here are as expected. When you
explicitly violate an encoding scheme you can expect the decoding method to
throw an exception.
> Exceptions in AddressSettings - decode() method
> -----------------------------------------------
>
> Key: ARTEMIS-5668
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5668
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.31.2, 2.43.0
> Environment: openjdk version "21.0.8" 2025-07-15
> Reporter: Mikhail Titov
> Priority: Major
> Attachments: Exceptions_AddressSetting_decode.tar
>
>
> Some bugs were discovered as a results of fuzz-testing of AddressSettings -
> decode() method:
> 1. IndexOutOfBoundsException
> 2. NegativeArraySizeException
> I have created a standalone repro for different bug types (attached archive).
> You can reproduce them by running the following command:
> {code:java}
> java -cp .:jars/* DecodeBugs.java {code}
> You might also want to reproduce all crash samples found by fuzzer (stack
> traces are slightly different for some of them). To do this you can simply
> uncomment the following line:
> {code:java}
> //crashDirName = "all_crashes"; {code}
> and rerun the program.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact