Commit Diff
- Commit:
f193439e8c4a60a961c4f5fcc9c4475da0b80201
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- fix a segfault triggered via the ! shell escape As reported by Tom, the following input sequence would lead to a segfault: !<space>?<tab><backspace><tab> Resetting the cursor position in makeargv's special-case handling of shell escapes fixes this. tested by myself and Tom ok Tom
- Actions:
- Patch | Tree
--- makeargv.c +++ makeargv.c @@ -59,6 +59,8 @@ makeargv(void) *argp++ = "!"; /* No room in string to get this */ margc++; cp++; + cursor_argc = 0; + cursor_argo = 0; } while ((c = *cp)) { int inquote = 0;