Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Fix use of pointer into string after assignment #4

Merged
merged 2 commits into from
Nov 30, 2015

Conversation

jibsen
Copy link
Contributor

@jibsen jibsen commented Nov 1, 2015

I am trying to get squash to work with MSVC (quixdb/squash#145), and gipfeli was one of the plugins that crashed. After failing to debug it in Windows, I ran it through Valgrind, and found this.

It looks like prev_block is set to point into the data of the string input_block, which is then assigned a different value, which should invalidate all pointers.

@jibsen
Copy link
Contributor Author

jibsen commented Nov 18, 2015

Great, thanks for testing it.

Edit: whoops, should have gone to the commit comment, github can be confusing.

lenhardt added a commit that referenced this pull request Nov 30, 2015
Fix use of pointer into string after assignment
@lenhardt lenhardt merged commit 0515fae into google:master Nov 30, 2015
@jibsen jibsen deleted the fix-use-after-free branch December 22, 2015 10:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants