Skip to content

spiped: fix 'goto err' labels#428

Open
gperciva wants to merge 1 commit into
masterfrom
fix-goto-err
Open

spiped: fix 'goto err' labels#428
gperciva wants to merge 1 commit into
masterfrom
fix-goto-err

Conversation

@gperciva

Copy link
Copy Markdown
Member

No description provided.

@gperciva

Copy link
Copy Markdown
Member Author

Looking through the history, the first sketch of this commit in #353 required all the errX numbers to increment by 2. When we added sock_resolve_one(), that meant the commit only required main.c's errX numbers to increment by 1, but evidently we missed two instances of that change.

The bug reporter notes that dereferencing a NULL pointer is a crash. I'm guessing that you would classify this as a "harmless" bug.

This should have been part of:
    2022-08-03 spipe & spiped: add -b to bind outgoing address
    c6cea35

When we added the "resolve the bind address" part, we (correctly)
incremented the subsequent errX numbers by 1 -- except for setuidgid()
and dispatch_accept(), which we incremented by 2 (!).

Looking through the history, the first sketch of this commit required
all the errX numbers to increment by 2.  When we added
sock_resolve_one(), that meant this commit only required main.c's errX
numbers to increment by 1, but evidently we missed two instances of that
change.

Reported by:	ChronoNova
Bug bounty:	$10 ("harmless")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant