Skip to content

Make sure we're not at EOF in more places in TLS reads#396

Merged
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-03529a8-20251126-124122
Nov 26, 2025
Merged

Make sure we're not at EOF in more places in TLS reads#396
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-03529a8-20251126-124122

Conversation

@kdkd
Copy link
Copy Markdown

@kdkd kdkd commented Nov 26, 2025

Commit from kdkd fork 03529a8

io/utils/TlsUtils.java:

InputStream readers for uint16/24/32 only checked the last byte for EOF. If
the stream ended on the first or middle byte, the methods return a value
built from -1 bytes instead of throwing, leading to silent truncation and
incorrect protocol parsing (potentially accepting malformed handshakes).


InputStream readers for uint16/24/32 only checked the last byte for EOF.  If
the stream ended on the first or middle byte, the methods return a value
built from -1 bytes instead of throwing, leading to silent truncation and
incorrect protocol parsing (potentially accepting malformed handshakes).
@mondain mondain merged commit 219bcd7 into Red5:main Nov 26, 2025
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