-
Notifications
You must be signed in to change notification settings - Fork 42
Add overflow tests #587
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
Add overflow tests #587
Conversation
4f36fe1
to
0086875
Compare
0086875
to
23b6809
Compare
adf2055
to
4cb4024
Compare
8e48902
to
4d8b693
Compare
4d8b693
to
9f23051
Compare
9f23051
to
44f8e83
Compare
d9d6b96
to
1daa6b7
Compare
1daa6b7
to
0e33c4e
Compare
0e33c4e
to
bfc20a4
Compare
pool_size = ALIGN_UP(pool_size, ba_os_get_page_size()); | ||
pool_size = ALIGN_UP_SAFE(pool_size, ba_os_get_page_size()); | ||
if (pool_size == 0) { | ||
utils_mutex_unlock(&pool->metadata.lock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the Helgrind log, I believe the problem is here. Are you sure it should be done here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have to release the mutex before returning from this function.
dcbb223
to
8f160d0
Compare
cf518a9
to
74af29f
Compare
Rebased |
74af29f
to
4859b62
Compare
Description
closes #541
Checklist