update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From eb1030de31165b68487f288308f9d1810fed6880 Mon Sep 17 00:00:00 2001
|
||||
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
||||
Date: Fri, 10 Jun 2016 14:23:58 +0200
|
||||
Subject: [PATCH] Fix heap overread in xsltFormatNumberConversion
|
||||
|
||||
An empty decimal-separator could cause a heap overread. This can be
|
||||
exploited to leak a couple of bytes after the buffer that holds the
|
||||
pattern string.
|
||||
|
||||
Found with afl-fuzz and ASan.
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Patch status: upstream commit eb1030de311
|
||||
|
||||
libxslt/numbers.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libxslt/numbers.c b/libxslt/numbers.c
|
||||
index d1549b46ca26..e78c46b6357b 100644
|
||||
--- a/libxslt/numbers.c
|
||||
+++ b/libxslt/numbers.c
|
||||
@@ -1090,7 +1090,8 @@ xsltFormatNumberConversion(xsltDecimalFormatPtr self,
|
||||
}
|
||||
|
||||
/* We have finished the integer part, now work on fraction */
|
||||
- if (xsltUTF8Charcmp(the_format, self->decimalPoint) == 0) {
|
||||
+ if ( (*the_format != 0) &&
|
||||
+ (xsltUTF8Charcmp(the_format, self->decimalPoint) == 0) ) {
|
||||
format_info.add_decimal = TRUE;
|
||||
the_format += xsltUTF8Size(the_format); /* Skip over the decimal */
|
||||
}
|
||||
--
|
||||
2.10.2
|
||||
|
||||
16
bsp/buildroot-2017.02.11/package/libxslt/Config.in
Normal file
16
bsp/buildroot-2017.02.11/package/libxslt/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LIBXSLT
|
||||
bool "libxslt"
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
help
|
||||
Install the xslt library which is used
|
||||
to transform XML files to other XML files.
|
||||
|
||||
XSLT is designed for use as part of XSL,
|
||||
which is a stylesheet language for XML.
|
||||
In addition to XSLT, XSL includes an XML vocabulary
|
||||
for specifying formatting.
|
||||
XSL specifies the styling of an XML document by using XSLT
|
||||
to describe how the document is transformed into another
|
||||
XML document that uses the formatting vocabulary.
|
||||
|
||||
http://xmlsoft.org/xslt/
|
||||
2
bsp/buildroot-2017.02.11/package/libxslt/libxslt.hash
Normal file
2
bsp/buildroot-2017.02.11/package/libxslt/libxslt.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 b5976e3857837e7617b29f2249ebb5eeac34e249208d31f1fbf7a6ba7a4090ce libxslt-1.1.29.tar.gz
|
||||
41
bsp/buildroot-2017.02.11/package/libxslt/libxslt.mk
Normal file
41
bsp/buildroot-2017.02.11/package/libxslt/libxslt.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# libxslt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBXSLT_VERSION = 1.1.29
|
||||
LIBXSLT_SITE = ftp://xmlsoft.org/libxslt
|
||||
LIBXSLT_INSTALL_STAGING = YES
|
||||
LIBXSLT_LICENSE = MIT
|
||||
LIBXSLT_LICENSE_FILES = COPYING
|
||||
|
||||
LIBXSLT_CONF_OPTS = \
|
||||
--with-gnu-ld \
|
||||
--without-debug \
|
||||
--without-python \
|
||||
--with-libxml-prefix=$(STAGING_DIR)/usr/ \
|
||||
--with-libxml-libs-prefix=$(STAGING_DIR)/usr/lib
|
||||
LIBXSLT_CONFIG_SCRIPTS = xslt-config
|
||||
LIBXSLT_DEPENDENCIES = libxml2
|
||||
|
||||
# GCC bug with Os/O2/O3, PR77311
|
||||
# error: unable to find a register to spill in class 'CCREGS'
|
||||
ifeq ($(BR2_bfin),y)
|
||||
LIBXSLT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
|
||||
endif
|
||||
|
||||
# If we have enabled libgcrypt then use it, else disable crypto support.
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
LIBXSLT_DEPENDENCIES += libgcrypt
|
||||
LIBXSLT_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
||||
else
|
||||
LIBXSLT_CONF_OPTS += --without-crypto
|
||||
endif
|
||||
|
||||
HOST_LIBXSLT_CONF_OPTS = --without-debug --without-python --without-crypto
|
||||
|
||||
HOST_LIBXSLT_DEPENDENCIES = host-libxml2
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user