From b2485c4c90a43503c461c251d377683c03d76b4d Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Mon, 21 Nov 2016 22:41:44 +0900 Subject: New patch 905_textarea.patch to fix heap write [CVE-2016-9424] --- debian/patches/905_textarea.patch | 75 +++++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 76 insertions(+) create mode 100644 debian/patches/905_textarea.patch diff --git a/debian/patches/905_textarea.patch b/debian/patches/905_textarea.patch new file mode 100644 index 0000000..86d53c6 --- /dev/null +++ b/debian/patches/905_textarea.patch @@ -0,0 +1,75 @@ +Subject: Prevent negative array index for selectnumber and textareanumber +Author: Tatsuya Kinoshita +Bug-Debian: https://github.com/tats/w3m/issues/12 [CVE-2016-9424] +Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=a25fd09f74fb83499396935a96d63bb7cb8e2c58 + +diff --git a/file.c b/file.c +index d06b2cf..4056393 100644 +--- a/file.c ++++ b/file.c +@@ -67,7 +67,7 @@ static int cur_status; + #ifdef MENU_SELECT + /* menu based