Commit ae42f48
committed
fix(runtime): read no inspector flags from a nil Arguments array
Config.Arguments is optional, but enableInspector indexed it whenever
ArgumentsCount was above one. Stop at a nil array, and at a null element
the way a C argv reader does, so the count alone can no longer make
debug startup dereference an invalid pointer.1 parent d02c8e4 commit ae42f48
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
0 commit comments