Andrey Slepykh created ARTEMIS-4826:
---------------------------------------

             Summary: 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
          Components: ActiveMQ-Artemis-Native
    Affects Versions: 2.25.0
            Reporter: Andrey Slepykh
            Assignee: Clebert Suconic
         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


Reply via email to