Skip to contentSkip to conversation

links: add security fix for CVE-2013-6050

PATCH New Gustavo Zacarias 2 participants 2 messages Jun 17, 2014 – Jun 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 links: add security fix for CVE-2013-6050

Also fix LICENSE typo.

---
 ...no-largefile.patch => links-0001-no-largefile.patch} |  0
 package/links/links-0002-CVE-2013-6050.patch            | 17 +++++++++++++++++
 package/links/links.mk                                  |  2 +-
 3 files changed, 18 insertions(+), 1 deletion(-)
 rename package/links/{links-no-largefile.patch => links-0001-no-largefile.patch} (100%)
 create mode 100644 package/links/links-0002-CVE-2013-6050.patch
package/links/links-0001-no-largefile.patch renamed from package/links/links-no-largefile.patch +0 -0
similarity index 100%
rename from package/links/links-no-largefile.patch
rename to package/links/links-0001-no-largefile.patch
package/links/links-0002-CVE-2013-6050.patch new file +17 -0
new file mode 100644
index 0000000..d85c250
@@ -0,0 +1,17 @@
+Description: Fix integer overflow in graphics mode (CVE-2013-6050)
+Author: Mikulas Patocka <[email protected]>
+Bug-CVE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6050
+
+Index: links-2.7/html_tbl.c
+===================================================================
+--- links-2.7.orig/html_tbl.c   2013-11-22 01:57:29.000000000 +0100
++++ links-2.7/html_tbl.c        2013-11-22 01:58:30.000000000 +0100
+@@ -1550,6 +1550,8 @@ static void add_to_rect_sets(struct rect
+ static void add_to_cell_sets(struct table_cell ****s, int **nn, int *n, struct rect *r, struct table_cell *c)
+ {
+ 	int i, j;
++	if (r->y1 < 0 || r->y2 < 0)
++		fatal_exit("add_to_cell_sets: integer overflow: %d, %d", r->y1, r->y2);
+ 	for (i = r->y1 >> RECT_BOUND_BITS; i <= (r->y2 - 1) >> RECT_BOUND_BITS; i++) {
+ 		if (i >= *n) {
+ 			struct table_cell ***ns;
package/links/links.mk +1 -1
index 6e683dd..a7baa4c 100644
@@ -7,7 +7,7 @@
 LINKS_VERSION = 2.7
 LINKS_SITE = http://links.twibright.com/download
 LINKS_DEPENDENCIES = host-pkgconf
-LINKS_LICNSE = GPLv2+
+LINKS_LICENSE = GPLv2+
 LINKS_LICENSE_FILES = COPYING
 
 ifeq ($(BR2_PACKAGE_LINKS_GRAPHICS),y)
Signature · 1 line
1.8.5.5