Skip to content

Int overflow in tokenJSON.ExpirationTime (casting int64 to int32) #279

@j3ch

Description

@j3ch

TokenJSON expirationTime is typed to int32. The unmarshal code further cast int64 to int32

expirationTime should just be int64.

This is an issue when some apps return really long expiration time to indicate permanent tokens, causing int overflow.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions