aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuang-che Wu <kcwu@google.com>2016-11-21 18:17:24 +0000
committerTatsuya Kinoshita <tats@debian.org>2017-01-06 12:57:49 +0000
commitfa83b932cb3d7bbd4a60ff1dcc9be27d8a86aa11 (patch)
tree67c76dc3900b43ef6e78064634dcfecf05858567
parentPrevent memory exhausted due to repeat appending "</table>" (diff)
downloadw3m-fa83b932cb3d7bbd4a60ff1dcc9be27d8a86aa11.tar.gz
w3m-fa83b932cb3d7bbd4a60ff1dcc9be27d8a86aa11.zip
Fix menu buffer-overflow
Bug-Debian: https://github.com/tats/w3m/pull/49 Origin: https://github.com/tats/w3m/pull/49/commits/7e1c05dd90cf42a308e854881ea3813aed000d2e
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 0f66583..6c5fee0 100644
--- a/menu.c
+++ b/menu.c
@@ -1692,7 +1692,7 @@ initMenu(void)
FILE *mf;
MenuList *list;
- w3mMenuList = New_N(MenuList, 3);
+ w3mMenuList = New_N(MenuList, 4);
w3mMenuList[0].id = "Main";
w3mMenuList[0].menu = &MainMenu;
w3mMenuList[0].item = MainMenuItem;