Skip to content

Conversation

@x2018
Copy link
Contributor

@x2018 x2018 commented Nov 7, 2025

Add a safety check to prevent integer truncation when converting socket descriptors to int for the RTMP library.
On some platforms, socket descriptors may use types larger than int.
When these values exceed INT_MAX, conversion to int can truncate to negative values causing RTMP connection failures, and even accidentally affect other socket when high-value descriptors map to existing lower-value sockets after integer conversion.
This check ensures socket values are within the safe range before passing them to the RTMP library.

@github-actions github-actions bot added the RTMP label Nov 7, 2025
@bagder bagder closed this in a6fcaf2 Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants