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

daemon.c: Fix variable overflow. #1

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

yew011
Copy link
Contributor

@yew011 yew011 commented Jan 7, 2016

The mmap's length argument should be of type "size_t".
Before this fix, the implementation has the risk of
overflow since the length is calculated by the
multiply of two "unsigned int".

Signed-off-by: Alex Wang alex@awakenetworks.com

The mmap's length argument should be of type "size_t".
Before this fix, the implementation has the risk of
overflow since the length is calculated by the
multiply of two "unsigned int".

Signed-off-by: Alex Wang <alex@awakenetworks.com>
gconnell added a commit that referenced this pull request Jan 7, 2016
@gconnell gconnell merged commit 6d5fee6 into google:master Jan 7, 2016
@yew011
Copy link
Contributor Author

yew011 commented Jan 7, 2016

Thx,

@yew011 yew011 deleted the awake/small_fixes branch January 19, 2016 18:05
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.

2 participants