Skip to content

Commit

Permalink
ARTEMIS-1634 unintentional integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbertram committed Apr 11, 2024
1 parent 33599f7 commit b2ffe9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ public CompositeData[] browse(int page, int pageSize, String filter) throws Exce
try {
long index = 0;
long start = (long) (page - 1) * pageSize;
long end = Math.min(page * pageSize, queue.getMessageCount());
long end = Math.min((long) page * pageSize, queue.getMessageCount());

ArrayList<CompositeData> c = new ArrayList<>();
Filter thefilter = FilterImpl.createFilter(filter);
Expand Down

0 comments on commit b2ffe9f

Please sign in to comment.