Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid applying an offset to a null pointer #3347

Merged
merged 1 commit into from Mar 27, 2024

Conversation

atoppi
Copy link
Member

@atoppi atoppi commented Mar 20, 2024

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
Copy link
Member

Merging.

@lminiero lminiero merged commit 2fba0cf into master Mar 27, 2024
8 checks passed
@lminiero lminiero deleted the fix-undefined-behavior-ws-transport branch March 27, 2024 14:30
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.

None yet

2 participants