mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 06:41:15 -03:00
Fix for buffer overrun in tokenizer for strings that end with backslash
Fixes https://github.com/fish-shell/fish-shell/issues/389
This commit is contained in:
@@ -295,7 +295,9 @@ static void read_string(tokenizer *tok)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Since we are about to increment tok->buff, decrement it first so the increment doesn't go past the end of the buffer. https://github.com/fish-shell/fish-shell/issues/389 */
|
||||
do_loop = 0;
|
||||
tok->buff--;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user