Skip to content

Fix leaks, some warnings and an error#3865

Merged
ethomson merged 9 commits into
masterfrom
ethomson/leaks
Aug 2, 2016
Merged

Fix leaks, some warnings and an error#3865
ethomson merged 9 commits into
masterfrom
ethomson/leaks

Conversation

@ethomson
Copy link
Copy Markdown
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
Copy Markdown
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