meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

Avoid applying an offset to a null pointer #3347

Closed atoppi closed 7 months ago

atoppi commented 8 months ago

This PR addresses an undefined behavior (sum of int and NULL pointer) discovered by UBSan in the websockets transport. Note: the sanitizer issues a runtime exception only while executing a janus binary built with clang.

lminiero commented 7 months ago

Merging.