[
https://issues.apache.org/jira/browse/ARTEMIS-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032559#comment-18032559
]
ASF subversion and git services commented on ARTEMIS-5662:
----------------------------------------------------------
Commit d07069a2bfb51cda5070369046f01cfcac487385 in activemq-artemis's branch
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=d07069a2bf ]
ARTEMIS-5662 add JavaDoc related to SimpleString
> NegativeArraySizeException in StringSimpleStringPool's constructor
> ------------------------------------------------------------------
>
> Key: ARTEMIS-5662
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5662
> 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: Minor
> Labels: pull-request-available
> Attachments: NegativeArraySizeException_ StringSimpleStringPool.tar
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> A bug was discovered as a result of fuzz-testing of SimpleString class
> methods:
> NegativeArraySizeException is thrown when passing a capacity greater than
> 2^30 to the StringSimpleStringPool constructor.
> I have created a standalone repro for this bug (attached archive). You can
> reproduce it by running the following command:
> {code:java}
> java -cp .:jars/* NegativeArraySizeBug.java{code}
> This bug does not pose a threat, but since the constructor is public, please
> consider the possibility of handling this exception or adding information
> about it to the documentation.
--
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