Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: int overflow in get_jiffies #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

innerlee
Copy link

The number in the results could be larger than the maximum int value. This is fixed by using long.

Signed-off-by: lizz <lizz@sensetime.com>
@lfreist
Copy link
Owner

lfreist commented Dec 5, 2023

Thank you for your contribution and sorry for the delayed reply! Just checked it and it seems that the jiffies variable is unsigned long in the linux kernel... Could you change the type to uint64_t? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants