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

Fixed uint32_t calculation overflow bug in ddb_list #10

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

Conversation

ontholerian
Copy link

The calculation of the size of the next increment of list->list is being calculated using uint32_t sized integers, yet it is possible that the calculation can exceed the maximum value of uint32_t. Encountering this case causes the array of list->list to shrink suddenly to the calculated size minus the max uint32_t value, yet list->size still increases to imply that there is more space available then there is. Later, when the next element is attempted to be added, the value of list->i goes beyond the allocated space of list->list and causes the program to segfault.

@pombredanne
Copy link

@tuulos @pmundkur Are you still maintaining discoDB?

@pmundkur
Copy link
Member

pmundkur commented Nov 3, 2015

@pombredanne I don't maintain discodb or disco. @pooya, do you know what the current maintainership status is?

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.

3 participants