Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix leaks, some warnings and an error #3865

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

Merged
merged 9 commits into from
Aug 2, 2016
Merged

Fix leaks, some warnings and an error #3865

merged 9 commits into from
Aug 2, 2016

Conversation

ethomson
Copy link
Member

Fix some leaks, and, oh, right, a terrible buffer overflow that I introduced in 1cd6599.

@ethomson ethomson force-pushed the ethomson/leaks branch 3 times, most recently from a53e688 to 3527761 Compare July 22, 2016 18:02
Edward Thomson added 8 commits July 24, 2016 15:49
Compare the preimage to the image; don't compare the preimage to itself.
After 1cd6599, we were passing a pointer to an `unsigned long` to
a function that now expected a pointer to a `size_t`.  These types
differ on 64-bit Windows, which means that we trash the stack.

Use `size_t`s in the packbuilder to avoid this.
And give it a default so that some compilers don't (unnecessarily)
complain.
@ethomson ethomson changed the title Fix leaks Fix leaks, some warnings and an error Jul 24, 2016
@ethomson
Copy link
Member Author

ethomson commented Aug 2, 2016

Having Windows 64 be completely broken is bumming me out. I'm going to merge this later today so that we can get through the backlog of pull requests that have piled up.

@ethomson ethomson merged commit 152efee into master Aug 2, 2016
@ethomson ethomson deleted the ethomson/leaks branch January 13, 2017 12:28
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.

1 participant