[ https://issues.apache.org/jira/browse/ARTEMIS-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856359#comment-17856359 ]
ASF subversion and git services commented on ARTEMIS-4826: ---------------------------------------------------------- Commit be1459c9397f30d82dbbaad5141e2c54a6686b9e in activemq-artemis's branch refs/heads/main from Justin Bertram [ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=be1459c939 ] ARTEMIS-4826 avoid implicit int conversion to long > ICAST_INTEGER_MULTIPLY_CAST_TO_LONG value too high > -------------------------------------------------- > > Key: ARTEMIS-4826 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4826 > Project: ActiveMQ Artemis > Issue Type: Bug > Reporter: Andrey Slepykh > Assignee: Justin Bertram > Priority: Minor > Attachments: image-2024-06-19-18-33-29-356.png > > > in method > [getMaxSize|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java#L272] > !image-2024-06-19-18-33-29-356.png! > In the event that the pageSize variable (of type int) is filled to its > maximum value (which is unlikely, although possible), a value greater than > the allowed value of the int data type will be returned on line > [556|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java#L556], > which may cause an error. -- 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