gentoo/dev-python/xmlsec/files/xmlsec-1.3.14-c99.patch
Sam James 5b49c674bf
dev-python/xmlsec: fix modern C issue
Closes: https://bugs.gentoo.org/920769
Signed-off-by: Sam James <sam@gentoo.org>
2024-10-05 09:52:28 +01:00

25 lines
987 B
Diff

https://bugs.gentoo.org/920769
https://github.com/xmlsec/python-xmlsec/issues/311
https://github.com/xmlsec/python-xmlsec/pull/325
https://github.com/xmlsec/python-xmlsec/commit/67cd4ac73e4fceac4b4eb6a320067cad33f79213
From 67cd4ac73e4fceac4b4eb6a320067cad33f79213 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Wed, 19 Jun 2024 17:43:07 +0200
Subject: [PATCH] Explicitly cast the pointer type in
PyXmlSec_ClearReplacedNodes
Fixes https://github.com/xmlsec/python-xmlsec/issues/323
--- a/src/enc.c
+++ b/src/enc.c
@@ -204,7 +204,7 @@ static void PyXmlSec_ClearReplacedNodes(xmlSecEncCtxPtr ctx, PyXmlSec_LxmlDocume
PYXMLSEC_DEBUGF("clear replaced node %p", n);
nn = n->next;
// if n has references, it will not be deleted
- elem = PyXmlSec_elementFactory(doc, n);
+ elem = (PyXmlSec_LxmlElementPtr*)PyXmlSec_elementFactory(doc, n);
if (NULL == elem)
xmlFreeNode(n);
else