Commit 7f6f697
authored
Fix null pointer dereference in traffic_crashlog (#12756)
ServerBacktrace() can return 0 (success) but leave the trace pointer
null when the target process has already exited. This caused a SEGV
when fprintf() was called with the null trace pointer.
Add a null check before using the trace pointer.1 parent e5cd67e commit 7f6f697
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| |||
0 commit comments