tFix possible oob access of cmd in newwindow() - surf - customized build of surf, the suckless webkit browser
(HTM) git clone git://src.adamsgaard.dk/surf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4b752834d82bc879e412d8eda5e54474b86f36fd
(DIR) parent ac837f43b965b2d2f58e52149dde4dc2c297a8c1
(HTM) Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 23 Apr 2017 18:25:40 +0200
Fix possible oob access of cmd in newwindow()
Thanks to tarug0 for spotting this!
Diffstat:
M surf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/surf.c b/surf.c
t@@ -817,7 +817,7 @@ newwindow(Client *c, const Arg *a, int noembed)
{
int i = 0;
char tmp[64];
- const char *cmd[26], *uri;
+ const char *cmd[27], *uri;
const Arg arg = { .v = cmd };
cmd[i++] = argv0;