Skip to content

input/curl: guard content length#2517

Closed
hyder365 wants to merge 1 commit into
MusicPlayerDaemon:masterfrom
hyder365:fix-curl-content-length
Closed

input/curl: guard content length#2517
hyder365 wants to merge 1 commit into
MusicPlayerDaemon:masterfrom
hyder365:fix-curl-content-length

Conversation

@hyder365

Copy link
Copy Markdown
Contributor

Parse Content-Length more strictly and avoid wrapping when adding it to the current stream offset.

If the header is malformed or the sum would overflow, leave the stream size unknown instead of storing a wrapped value.

@MaxKellermann

Copy link
Copy Markdown
Member

This PR contains text that is missing in the commit message.
This is annoying enough that I will close every PR from you that doesn't even pass the most basic smell test.

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