diff options
author | Daniel Gryniewicz <dang@gentoo.org> | 2007-08-29 15:13:01 +0000 |
---|---|---|
committer | Daniel Gryniewicz <dang@gentoo.org> | 2007-08-29 15:13:01 +0000 |
commit | 129f253e23d09ce58f6f4e568fb57966d76a89a1 (patch) | |
tree | b64ae56cb9d55cefc6cdb5e72ad26cfe480af43f /dev-libs/libxslt/files | |
parent | stable 0.20.2 for Schedules Direct support needed by Sept 1 (diff) | |
download | gentoo-2-129f253e23d09ce58f6f4e568fb57966d76a89a1.tar.gz gentoo-2-129f253e23d09ce58f6f4e568fb57966d76a89a1.tar.bz2 gentoo-2-129f253e23d09ce58f6f4e568fb57966d76a89a1.zip |
Zero out allocated memory, to fix a core on amd64. Bug #190388
(Portage version: 2.1.3.7)
Diffstat (limited to 'dev-libs/libxslt/files')
-rw-r--r-- | dev-libs/libxslt/files/digest-libxslt-1.1.20-r1 | 3 | ||||
-rw-r--r-- | dev-libs/libxslt/files/libxslt-1.1.20-amd64.patch | 29 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/libxslt/files/digest-libxslt-1.1.20-r1 b/dev-libs/libxslt/files/digest-libxslt-1.1.20-r1 new file mode 100644 index 000000000000..5432130408ce --- /dev/null +++ b/dev-libs/libxslt/files/digest-libxslt-1.1.20-r1 @@ -0,0 +1,3 @@ +MD5 4ea2dc22a23bf2aa570f868aa86357f8 libxslt-1.1.20.tar.gz 3689759 +RMD160 f2882ff47312de3b6317136ef751d4b42ab15a53 libxslt-1.1.20.tar.gz 3689759 +SHA256 ce92f00031c885e04cb65ea76c4675b07aa98af9607572fb0d68180c34bf5346 libxslt-1.1.20.tar.gz 3689759 diff --git a/dev-libs/libxslt/files/libxslt-1.1.20-amd64.patch b/dev-libs/libxslt/files/libxslt-1.1.20-amd64.patch new file mode 100644 index 000000000000..ab9b4766c18d --- /dev/null +++ b/dev-libs/libxslt/files/libxslt-1.1.20-amd64.patch @@ -0,0 +1,29 @@ +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN libxslt-1.1.20.orig/python/libxslt.c libxslt-1.1.20/python/libxslt.c +--- libxslt-1.1.20.orig/python/libxslt.c 2007-01-15 07:51:48.000000000 -0500 ++++ libxslt-1.1.20/python/libxslt.c 2007-08-29 10:36:36.000000000 -0400 +@@ -740,7 +740,7 @@ libxslt_xsltApplyStylesheet(PyObject *se + PyObject *pyobj_doc; + PyObject *pyobj_params; + const char **params = NULL; +- int len = 0, i = 0, j; ++ int len = 0, i = 0, j, params_size; + PyObject *name; + PyObject *value; + +@@ -752,13 +752,14 @@ libxslt_xsltApplyStylesheet(PyObject *se + if (PyDict_Check(pyobj_params)) { + len = PyDict_Size(pyobj_params); + if (len > 0) { +- params = (const char **) xmlMalloc((len + 1) * 2 * +- sizeof(char *)); ++ params_size = (len + 1) * 2 * sizeof(char *); ++ params = (const char **) xmlMalloc(params_size); + if (params == NULL) { + printf("libxslt_xsltApplyStylesheet: out of memory\n"); + Py_INCREF(Py_None); + return(Py_None); + } ++ memset(params, 0, params_size); + j = 0; + while (PyDict_Next(pyobj_params, &i, &name, &value)) { + const char *tmp; |