[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2397) hilo generator can generate negative numbers because of arithmetic overflow
Steve Ebersole (JIRA)
noreply at atlassian.com
Wed Jan 31 13:50:40 EST 2007
hilo generator can generate negative numbers because of arithmetic overflow
---------------------------------------------------------------------------
Key: HHH-2397
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2397
Project: Hibernate3
Type: Bug
Components: core
Reporter: Steve Ebersole
Assigned to: Steve Ebersole
Fix For: 3.2.3
org.hibernate.id.TableHiLoGenerator#generate can potentially generate negative numbers because of the possibility of overflow due to the handling of the "clock over" multiplication using int multiplication. The solution is to force one of the operands to type long.
--
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