Mikhail Titov created ARTEMIS-5662: -------------------------------------- Summary: 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 Attachments: NegativeArraySizeException_ StringSimpleStringPool.tar
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: issues-unsubscr...@activemq.apache.org For additional commands, e-mail: issues-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact