Skip to content

Do not dereference garbage pointers in sel_buf (doOut)#121

Open
jamesjer wants to merge 1 commit intoastrand:masterfrom
jamesjer:master
Open

Do not dereference garbage pointers in sel_buf (doOut)#121
jamesjer wants to merge 1 commit intoastrand:masterfrom
jamesjer:master

Conversation

@jamesjer
Copy link

We've been seeing segfaults in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1947285. An analysis of the bug is available at that URL. Briefly, sel_buf contains garbage bytes when the while loop is entered, and those bytes can be dereferenced or passed to free().

@spotrh
Copy link

spotrh commented Jun 10, 2021

Worth noting that this solution solves the problem described in PR #117 , but in a way that doesn't break the pathing where sel_buf has data that needs to be freed.

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.

2 participants