This repository was archived by the owner on Feb 28, 2025. It is now read-only.
Commit ed0bf81
Ticket #4650: fix a segfault when parsing extern_cmd_options fails.
do_executev() dereferences argv unconditionally. However,
execute_external_editor_or_viewer() may call do_executev() with NULL
argv, which causes a segfault.
This commit adds a check of argv for non-nullness.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>1 parent 5cae1dd commit ed0bf81
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| |||
0 commit comments