diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-21 14:57:42 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-21 14:57:42 +0000 |
commit | 6c51115a2a3d229a1ec58d25666d0c1af6a9be11 (patch) | |
tree | b79b20ec151eae5a33988ab587566b8b539f729a | |
parent | New patch 920_table.patch to fix stack overflow [CVE-2016-9439] (diff) | |
download | w3m-6c51115a2a3d229a1ec58d25666d0c1af6a9be11.tar.gz w3m-6c51115a2a3d229a1ec58d25666d0c1af6a9be11.zip |
New patch 921_cotable.patch to fix null deref
Diffstat (limited to '')
-rw-r--r-- | debian/patches/921_cotable.patch | 18 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/921_cotable.patch b/debian/patches/921_cotable.patch new file mode 100644 index 0000000..99d0ec1 --- /dev/null +++ b/debian/patches/921_cotable.patch @@ -0,0 +1,18 @@ +Subject: Prevent deref null pointer in renderCoTable() +Author: Tatsuya Kinoshita <tats@debian.org> +Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260649537 +Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=ec99f186380d26ebf791569fdbc56dae60632365 + +diff --git a/table.c b/table.c +index 8cd79e3..1b425db 100644 +--- a/table.c ++++ b/table.c +@@ -1649,6 +1649,8 @@ renderCoTable(struct table *tbl, int maxlimit) + + for (i = 0; i < tbl->ntable; i++) { + t = tbl->tables[i].ptr; ++ if (t == NULL) ++ continue; + col = tbl->tables[i].col; + row = tbl->tables[i].row; + indent = tbl->tables[i].indent; diff --git a/debian/patches/series b/debian/patches/series index b3eaad0..425cef0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -56,3 +56,4 @@ 918_form-value.patch 919_form-update.patch 920_table.patch +921_cotable.patch |