mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
commit
3b2492029e
2 changed files with 5 additions and 1 deletions
|
|
@ -42,6 +42,9 @@
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Crash in scrollback search
|
* Crash in scrollback search
|
||||||
|
* Crash when a **pipe-visible** or **pipe-scrollback** command
|
||||||
|
contained an unclosed quote
|
||||||
|
(https://codeberg.org/dnkl/foot/issues/49).
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,9 @@ tokenize_cmdline(char *cmdline, char ***argv)
|
||||||
char *end = strchr(p, delim);
|
char *end = strchr(p, delim);
|
||||||
if (end == NULL) {
|
if (end == NULL) {
|
||||||
if (delim != ' ') {
|
if (delim != ' ') {
|
||||||
LOG_ERR("unterminated %s quote\n", delim == '"' ? "double" : "single");
|
LOG_ERR("unterminated %s quote", delim == '"' ? "double" : "single");
|
||||||
free(*argv);
|
free(*argv);
|
||||||
|
*argv = NULL;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue