mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Merge pull request #5372 from heitbaum/CVE-2021-3541
libxml2: update to 2.9.13 and libxslt: update to 1.1.35
This commit is contained in:
commit
afb010953c
@ -3,14 +3,15 @@
|
|||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="libxml2"
|
PKG_NAME="libxml2"
|
||||||
PKG_VERSION="2.9.10"
|
PKG_VERSION="2.9.13"
|
||||||
PKG_SHA256="aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f"
|
PKG_SHA256="22b6218a2fdfb3dfaabeac22c20f01e9ae94dc7d970f8b8e6c57451fea770a45"
|
||||||
PKG_LICENSE="MIT"
|
PKG_LICENSE="MIT"
|
||||||
PKG_SITE="http://xmlsoft.org"
|
PKG_SITE="http://xmlsoft.org"
|
||||||
PKG_URL="ftp://xmlsoft.org/libxml2/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
PKG_URL="https://gitlab.gnome.org/GNOME/${PKG_NAME}/-/archive/v${PKG_VERSION}/${PKG_NAME}-v${PKG_VERSION}.tar.bz2"
|
||||||
PKG_DEPENDS_HOST="zlib:host Python3:host"
|
PKG_DEPENDS_HOST="zlib:host Python3:host"
|
||||||
PKG_DEPENDS_TARGET="toolchain zlib"
|
PKG_DEPENDS_TARGET="toolchain zlib"
|
||||||
PKG_LONGDESC="The libxml package contains an XML library, which allows you to manipulate XML files."
|
PKG_LONGDESC="The libxml package contains an XML library, which allows you to manipulate XML files."
|
||||||
|
PKG_TOOLCHAIN="autotools"
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_ALL="ac_cv_header_ansidecl_h=no \
|
PKG_CONFIGURE_OPTS_ALL="ac_cv_header_ansidecl_h=no \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
|
@ -1,92 +0,0 @@
|
|||||||
From edc7b6abb0c125eeb888748c334897f60aab0854 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
||||||
Date: Fri, 28 Feb 2020 12:48:14 +0100
|
|
||||||
Subject: [PATCH] Parenthesize Py<type>_Check() in ifs
|
|
||||||
|
|
||||||
In C, if expressions should be parenthesized.
|
|
||||||
PyLong_Check, PyUnicode_Check etc. happened to expand to a parenthesized
|
|
||||||
expression before, but that's not API to rely on.
|
|
||||||
|
|
||||||
Since Python 3.9.0a4 it needs to be parenthesized explicitly.
|
|
||||||
|
|
||||||
Fixes https://gitlab.gnome.org/GNOME/libxml2/issues/149
|
|
||||||
---
|
|
||||||
python/libxml.c | 4 ++--
|
|
||||||
python/types.c | 12 ++++++------
|
|
||||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/python/libxml.c b/python/libxml.c
|
|
||||||
index bc676c4e..81e709f3 100644
|
|
||||||
--- a/python/libxml.c
|
|
||||||
+++ b/python/libxml.c
|
|
||||||
@@ -294,7 +294,7 @@ xmlPythonFileReadRaw (void * context, char * buffer, int len) {
|
|
||||||
lenread = PyBytes_Size(ret);
|
|
||||||
data = PyBytes_AsString(ret);
|
|
||||||
#ifdef PyUnicode_Check
|
|
||||||
- } else if PyUnicode_Check (ret) {
|
|
||||||
+ } else if (PyUnicode_Check (ret)) {
|
|
||||||
#if PY_VERSION_HEX >= 0x03030000
|
|
||||||
Py_ssize_t size;
|
|
||||||
const char *tmp;
|
|
||||||
@@ -359,7 +359,7 @@ xmlPythonFileRead (void * context, char * buffer, int len) {
|
|
||||||
lenread = PyBytes_Size(ret);
|
|
||||||
data = PyBytes_AsString(ret);
|
|
||||||
#ifdef PyUnicode_Check
|
|
||||||
- } else if PyUnicode_Check (ret) {
|
|
||||||
+ } else if (PyUnicode_Check (ret)) {
|
|
||||||
#if PY_VERSION_HEX >= 0x03030000
|
|
||||||
Py_ssize_t size;
|
|
||||||
const char *tmp;
|
|
||||||
diff --git a/python/types.c b/python/types.c
|
|
||||||
index c2bafeb1..ed284ec7 100644
|
|
||||||
--- a/python/types.c
|
|
||||||
+++ b/python/types.c
|
|
||||||
@@ -602,16 +602,16 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj)
|
|
||||||
if (obj == NULL) {
|
|
||||||
return (NULL);
|
|
||||||
}
|
|
||||||
- if PyFloat_Check (obj) {
|
|
||||||
+ if (PyFloat_Check (obj)) {
|
|
||||||
ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj));
|
|
||||||
- } else if PyLong_Check(obj) {
|
|
||||||
+ } else if (PyLong_Check(obj)) {
|
|
||||||
#ifdef PyLong_AS_LONG
|
|
||||||
ret = xmlXPathNewFloat((double) PyLong_AS_LONG(obj));
|
|
||||||
#else
|
|
||||||
ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj));
|
|
||||||
#endif
|
|
||||||
#ifdef PyBool_Check
|
|
||||||
- } else if PyBool_Check (obj) {
|
|
||||||
+ } else if (PyBool_Check (obj)) {
|
|
||||||
|
|
||||||
if (obj == Py_True) {
|
|
||||||
ret = xmlXPathNewBoolean(1);
|
|
||||||
@@ -620,14 +620,14 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj)
|
|
||||||
ret = xmlXPathNewBoolean(0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
- } else if PyBytes_Check (obj) {
|
|
||||||
+ } else if (PyBytes_Check (obj)) {
|
|
||||||
xmlChar *str;
|
|
||||||
|
|
||||||
str = xmlStrndup((const xmlChar *) PyBytes_AS_STRING(obj),
|
|
||||||
PyBytes_GET_SIZE(obj));
|
|
||||||
ret = xmlXPathWrapString(str);
|
|
||||||
#ifdef PyUnicode_Check
|
|
||||||
- } else if PyUnicode_Check (obj) {
|
|
||||||
+ } else if (PyUnicode_Check (obj)) {
|
|
||||||
#if PY_VERSION_HEX >= 0x03030000
|
|
||||||
xmlChar *str;
|
|
||||||
const char *tmp;
|
|
||||||
@@ -650,7 +650,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj)
|
|
||||||
ret = xmlXPathWrapString(str);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
- } else if PyList_Check (obj) {
|
|
||||||
+ } else if (PyList_Check (obj)) {
|
|
||||||
int i;
|
|
||||||
PyObject *node;
|
|
||||||
xmlNodePtr cur;
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -3,15 +3,16 @@
|
|||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="libxslt"
|
PKG_NAME="libxslt"
|
||||||
PKG_VERSION="1.1.34"
|
PKG_VERSION="1.1.35"
|
||||||
PKG_SHA256="98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f"
|
PKG_SHA256="2da1c2954f8a4e844f9d4e9110d1b31d45e7a5f8e9edc61823984861505e6e5d"
|
||||||
PKG_LICENSE="MIT"
|
PKG_LICENSE="MIT"
|
||||||
PKG_SITE="http://xmlsoft.org/xslt/"
|
PKG_SITE="http://xmlsoft.org/xslt/"
|
||||||
PKG_URL="ftp://xmlsoft.org/libxml2/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
PKG_URL="https://gitlab.gnome.org/GNOME/${PKG_NAME}/-/archive/v${PKG_VERSION}/${PKG_NAME}-v${PKG_VERSION}.tar.bz2"
|
||||||
PKG_DEPENDS_HOST="libxml2:host"
|
PKG_DEPENDS_HOST="libxml2:host"
|
||||||
PKG_DEPENDS_TARGET="toolchain libxml2"
|
PKG_DEPENDS_TARGET="toolchain libxml2"
|
||||||
PKG_LONGDESC="A XSLT C library."
|
PKG_LONGDESC="A XSLT C library."
|
||||||
PKG_BUILD_FLAGS="+pic"
|
PKG_BUILD_FLAGS="+pic"
|
||||||
|
PKG_TOOLCHAIN="autotools"
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_HOST=" ac_cv_header_ansidecl_h=no \
|
PKG_CONFIGURE_OPTS_HOST=" ac_cv_header_ansidecl_h=no \
|
||||||
ac_cv_header_xlocale_h=no \
|
ac_cv_header_xlocale_h=no \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user