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
realloc doesn't preserve content #15
Comments
It should do. Can you provide a test case? |
I believe I found the bug, it results in a 2 byte offset sometimes, |
Fixed at 1855adf. |
Yep, fixed. |
Great that you found it. It could have been a source of unreasonable bugs... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"
void *realloc(void *ptr, size_t size);
...
The realloc() function changes the size of the memory block pointed to by ptr to size bytes. The contents will be unchanged in the range from the start of the region up to the minimum of the old and new sizes."
Source: http://linux.die.net/man/3/realloc
The text was updated successfully, but these errors were encountered: