[hackers] [surf/surf-webkit2] Fix possible oob access of cmd in newwindow() || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sun, 23 Apr 2017 20:17:44 +0200 (CEST)

commit 4b752834d82bc879e412d8eda5e54474b86f36fd
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Apr 23 18:25:40 2017 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sun Apr 23 18:27:43 2017 +0200

    Fix possible oob access of cmd in newwindow()
    
    Thanks to tarug0 for spotting this!

diff --git a/surf.c b/surf.c
index cdd0cc6..b01aa75 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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;
Received on Sun Apr 23 2017 - 20:17:44 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 23 2017 - 20:24:23 CEST