aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/956_CVE-2018-6197_columnpos.patch
diff options
context:
space:
mode:
authorThorsten Alteholz <debian@alteholz.de>2020-05-01 11:30:11 +0000
committerTatsuya Kinoshita <tats@debian.org>2020-05-01 11:30:11 +0000
commit1db054fee2d6dc00904228898af5ad363d7305cb (patch)
tree675488be3c488e2370595b2120cb721e484d16b2 /debian/patches/956_CVE-2018-6197_columnpos.patch
parentDebian release 0.5.3-19+deb8u2 (diff)
downloadw3m-1db054fee2d6dc00904228898af5ad363d7305cb.tar.gz
w3m-1db054fee2d6dc00904228898af5ad363d7305cb.zip
Update to 0.5.3-19+deb8u3 for jessie-securitydebian/0.5.3-19+deb8u3debian-jessie
Diffstat (limited to 'debian/patches/956_CVE-2018-6197_columnpos.patch')
-rw-r--r--debian/patches/956_CVE-2018-6197_columnpos.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/956_CVE-2018-6197_columnpos.patch b/debian/patches/956_CVE-2018-6197_columnpos.patch
new file mode 100644
index 0000000..10e94e3
--- /dev/null
+++ b/debian/patches/956_CVE-2018-6197_columnpos.patch
@@ -0,0 +1,18 @@
+Subject: Prevent invalid columnPos() call in formUpdateBuffer()
+From: Tatsuya Kinoshita <tats@debian.org>
+Bug-Debian: https://github.com/tats/w3m/issues/89 [CVE-2018-6197]
+Origin: https://salsa.debian.org/debian/w3m/commit/7fdc83b0364005a0b5ed869230dd81752ba022e8
+
+Index: w3m-0.5.3/form.c
+===================================================================
+--- w3m-0.5.3.orig/form.c 2020-04-29 13:52:58.629142811 +0200
++++ w3m-0.5.3/form.c 2020-04-29 13:52:58.621142209 +0200
+@@ -483,6 +483,8 @@
+ rows = form->rows ? form->rows : 1;
+ col = COLPOS(l, a->start.pos);
+ for (c_rows = 0; c_rows < rows; c_rows++, l = l->next) {
++ if (l == NULL)
++ break;
+ if (rows > 1) {
+ pos = columnPos(l, col);
+ a = retrieveAnchor(buf->formitem, l->linenumber, pos);