| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Fix NOTREACHED crash in StreamPacketSocket::SetOption
WebRTC routinely calls SetOption() on transport ports during session
negotiation (e.g., to apply OPT_DSCP or OPT_NODELAY). If the socket was
closed or the option was unsupported, StreamPacketSocket::SetOption()
would hit a NOTREACHED() macro.
Historically, NOTREACHED() was ignored in Chromium Release builds,
allowing the function to fall through and return -1. WebRTC's
AsyncPacketSocket API contract correctly interprets -1 as "option
unsupported" and gracefully continues.
However, Chromium recently changed NOTREACHED() to be fatal in Release
builds (acting like CHECK(false)). This caused the previously benign
fall-through to become a fatal SIGTRAP crash.
This change updates SetOption() to explicitly return -1 in these
expected conditions instead of asserting, conforming to WebRTC's API
contract. A unit test is also added to verify the fix.
Additional unit tests for this class will be added in a follow-up
CL to keep this one scoped to the fix.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |