Skip to content

Reject demux packets with a negative length - #12

Open
user-none wants to merge 1 commit into
gen2brain:mainfrom
user-none:fix-demux-packet-length
Open

user-none wants to merge 1 commit into
gen2brain:mainfrom
user-none:fix-demux-packet-length

Conversation

@user-none

Copy link
Copy Markdown

A packet whose length field is smaller than the header fields after it (stuffing, P-STD, PTS/DTS) ends up with a negative payload length. packet() then slices with an end before the start and panics. Packets with a negative length are now dropped as invalid.

This branch has not been deployed

No deployments
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