[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3233) Integer overflow in TableHiLoGenerator

Hauke Rabe (JIRA) noreply at atlassian.com
Mon Apr 14 09:01:33 EDT 2008


Integer overflow in TableHiLoGenerator 
---------------------------------------

                 Key: HHH-3233
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3233
             Project: Hibernate3
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.2
            Reporter: Hauke Rabe


The TableGenerator use for id generation the type INTEGER. The subclass TableHiLoGenerator use these id for multiplication with the maxLo value. But if you mutiply two int and assign the result to a long you can get an integer overflow.

The TableGenerator should work with long values, or must be able to configure.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list