Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix possible oob access of cmd in newwindow() - surf - surf browser, a WebKit b…
git clone git://git.suckless.org/surf
Log
Files
Refs
README
LICENSE
---
commit 4b752834d82bc879e412d8eda5e54474b86f36fd
parent ac837f43b965b2d2f58e52149dde4dc2c297a8c1
Author: Quentin Rameau <[email protected]>
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(-)
---
diff --git a/surf.c b/surf.c
@@ -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;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.