Commit 62fd88e
authored
Fix potential SIGSEGV in SbSocketWaiterPrivate initialization (#8464)
Replace SB_DCHECK with SB_CHECK when validating server_socket in
GetSocketPipe().
SB_DCHECK is compiled out in Release builds, leading to undefined
behavior (null pointer dereference) when AcceptBySpinning() fails or
times out. This UB manifests as SIGSEGV crash at line 146 when accessing
server_socket_->socket_fd.
SB_CHECK ensures validation in all build configurations and provides
clear error message on failure instead of unpredictable crash.1 parent 4fe751a commit 62fd88e
File tree
1 file changed
+1
-1
lines changed1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments