Skip to content

int overflow in AbstractPageRequest#getOffset() [DATACMNS-1327] #1724

Closed
@spring-projects-issues

Description

@spring-projects-issues

Alex Bondarev opened DATACMNS-1327 and commented

AbstractPageRequest#getOffset() works incorrectly because the multiplication of two int values can be greater than INTEGER.MAX_VALUE. This issue can cause incorrect page content displaying for a big page number


Reference URL: https://github.com/spring-projects/spring-data-commons/blob/master/src/main/java/org/springframework/data/domain/AbstractPageRequest.java#L77

Referenced from: pull request #291

Backported to: 2.0.8 (Kay SR8)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions