Haivision / srt

Secure, Reliable, Transport
https://www.srtalliance.org
Mozilla Public License 2.0
3.12k stars 855 forks source link

[core] Fixed getting SRTO_RCVBUF and SRTO_SNDBUF on a group. #3077

Closed maxsharabayko closed 5 days ago

maxsharabayko commented 6 days ago

The documented length of SRTO_RCVBUF and SRTO_SNDBUF socket options is 4 bytes, the code was setting 8 bytes without checking optlen. Hence producing an out-of-bound memory write.

Introduced since the start by PR #1109. Affected SRT versions: v1.4.2+.

Work within issue #3074.