]
Kyrill Alyoshin updated HHH-5699:
---------------------------------
Attachment: HHH-5699.2.patch
Oops. The bug occurs in multiple places in Loader. Here is an updated patch.
Integer overflow in setFirstResult() and setMaxResults()
--------------------------------------------------------
Key: HHH-5699
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5699
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.4
Environment: Oracle 10g
Reporter: Kyrill Alyoshin
Priority: Minor
Attachments: HHH-5699.2.patch, HHH-5699.patch
It seems there is an integer overflow bug in pagination APIs... It is very easy to
reproduce. If setFirstResult() is greater than 0, and setMaxResults(Integer.MAX_VALUE),
the query will return no results. But the moment we set maxResults to (Integer.MAX_VALUE -
firstResult), everything works as expected.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: