Fix Integer overflow in AccessGrant #48

Merged
merged 1 commit into from Apr 4, 2012

Conversation

Projects
None yet
2 participants

drei01 commented Apr 3, 2012

The OAuth2 access grant produces the wrong expiry time when a large integer is passed in. This is because System.currentTimeMillis() (a Long) is added to expiryTime * 1000 (an Integer).

This change, uses expiryTime * 1000l (a Long)

@habuma habuma added a commit that referenced this pull request Apr 4, 2012

@habuma habuma Merge pull request #48 from drei01/master
Fix Integer overflow in AccessGrant
dd1a59a

@habuma habuma merged commit dd1a59a into spring-projects:master Apr 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment