package/libxmlsec1: bump to version 1.3.13
PATCH 1/1 package/libxmlsec1: bump to version 1.3.13
Changelog available at:
https://github.com/lsh123/xmlsec/releases/tag/1.3.13
While at it, update the hash file to mention the hash found in the release page rather than mentioning a computed hash. The hash for the Copyright file has changed: the diff is only about some typos though, see https://github.com/lsh123/xmlsec/commit/b6d69c09f4bc51845dbe90f0da82c9eb04bd671e
The v1.3.13 does not build immediately without some help:
- the configure step fails, because it fails to build some test program. This test program fails to build because _FORTIFY_SOURCE is defined twice, it is passed as _FORTIFY_SOURCE=1 by default by buildroot, and this new libxmlsec1 version has hardening enabled by default, which sets _FORTIFY_SOURCE=2. This issue is fixed by preserving the former behavior, ie passing --disable-hardening at configure time.
- the toolchain wrapper raises an error about some system headers being included:
aarch64-linux-gcc: ERROR: unsafe header/library path used in \
cross-compilation: '-I/usr/include/xmlsec1' This error is due to some fuzzer program now being part of the standard build, and missing some cflags. The corresponding patch has been sent and integrated upstream, and backported in this commit
- The same fuzzer keep on using some DES related APIs even when --disable-des is passed. The issue is already fixed upstream, this commit backports this patch as well.
--- ...01-Fix-no-des-build-error-in-fuzzers-1413.patch | 42 ++++++++++++++ ...d-correctly-pass-crypto-cflags-to-fuzzer-.patch | 67 ++++++++++++++++++++++ package/libxmlsec1/libxmlsec1.hash | 5 +- package/libxmlsec1/libxmlsec1.mk | 5 +- 4 files changed, 115 insertions(+), 4 deletions(-)
package/libxmlsec1/0001-Fix-no-des-build-error-in-fuzzers-1413.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 23a3a4b7005aa073c08c189c9389eacbd4f4d787 Mon Sep 17 00:00:00 2001 +From: lsh123 <[email protected]> +Date: Tue, 27 Oct 2026 17:50:54 -0400 +Subject: [PATCH] Fix no-des build error in fuzzers (#1413) + +Upstream: https://github.com/lsh123/xmlsec/commit/23a3a4b7005aa073c08c189c9389eacbd4f4d787 +Signed-off-by: Alexis Lothoré <[email protected]> +--- + apps/oss-fuzz/xmlsec_enc_target.c | 17 ++++++++++++++--- + 1 file changed, 14 insertions(+), 3 deletions(-) + +diff --git a/apps/oss-fuzz/xmlsec_enc_target.c b/apps/oss-fuzz/xmlsec_enc_target.c +index 05ce8219aab6..7b21573399d6 100644 +--- a/apps/oss-fuzz/xmlsec_enc_target.c ++++ b/apps/oss-fuzz/xmlsec_enc_target.c +@@ -104,9 +104,20 @@ static int load_sym_keys(void) { + int i; + + for (i = 0; i < G_SYM_NKEYS; ++i) { +- xmlSecKeyDataId id = g_sym_keys[i].is_des ? +- xmlSecOpenSSLKeyDataDesId : +- xmlSecOpenSSLKeyDataAesId; ++ xmlSecKeyDataId id = xmlSecKeyDataIdUnknown; ++ if (g_sym_keys[i].is_des == 1) { ++#ifndef XMLSEC_NO_DES ++ id = xmlSecOpenSSLKeyDataDesId; ++#endif /* XMLSEC_NO_DES */ ++ } else { ++#ifndef XMLSEC_NO_AES ++ id = xmlSecOpenSSLKeyDataAesId; ++#endif /* XMLSEC_NO_AES */ ++ } ++ if (id == xmlSecKeyDataIdUnknown) { ++ /* skip test if algorithm is not supported */ ++ continue; ++ } + xmlSecKeyPtr key = xmlSecKeyReadMemory(id, + (const xmlSecByte*)g_sym_keys[i].material, + g_sym_keys[i].size); +-- +2.56.0 +
package/libxmlsec1/0002-xmlsec-build-correctly-pass-crypto-cflags-to-fuzzer-.patch new file +67 -0
67 lines not on this page · raw message
package/libxmlsec1/libxmlsec1.hash +3 -2
@@ -1,3 +1,4 @@ +# From https://github.com/lsh123/xmlsec/releases/tag/1.3.13 +sha256 7e500061eed734c55d74c786998e7562e55b1aaa72a2dff8ce3130b4c5b832d5 xmlsec1-1.3.13.tar.gz # Locally computed -sha256 24045199af12d93fe5fdbbbf7e386e823e4842071e9432e2b90ac108b889a923 xmlsec1-1.3.12.tar.gz -sha256 a6d217151f3d423e06639c075bad8e442ea1936828d3a660105122ef78ecd96d Copyright +sha256 f231f0d37ce33c00afef1cde60b7ff365355ae5dbb7a7095e61300c7207fa3c7 Copyright
package/libxmlsec1/libxmlsec1.mk +3 -2
@@ -4,7 +4,7 @@ # ################################################################################ -LIBXMLSEC1_VERSION = 1.3.12 +LIBXMLSEC1_VERSION = 1.3.13 LIBXMLSEC1_SOURCE = xmlsec1-$(LIBXMLSEC1_VERSION).tar.gz LIBXMLSEC1_SITE = https://github.com/lsh123/xmlsec/releases/download/$(LIBXMLSEC1_VERSION) LIBXMLSEC1_LICENSE = MIT
@@ -20,7 +20,8 @@ LIBXMLSEC1_CONF_OPTS = \ --without-gnutls \ --without-gcrypt \ --without-nss \ - --disable-des + --disable-des \ + --disable-hardening # xmlsec_unit_tests needs xmlDebugDumpDocument() from libxml2 which is not # present in buildroot because libxml2 is build with -without-debug
---
base-commit: c17458af094891cc6e20444a9636dad1795a05dd
change-id: 20261102-bump_libxmlsec-2efa18296650
Best regards,
Signature · 6 lines
Alexis Lothoré <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 21 lines · Alexis Lothoré via buildroot
Changelog available at:
https://github.com/lsh123/xmlsec/releases/tag/1.3.13While at it, update the hash file to mention the hash found in the release page rather than mentioning a computed hash. The hash for the Copyright file has changed: the diff is only about some typos though, see https://github.com/lsh123/xmlsec/commit/b6d69c09f4bc51845dbe90f0da82c9eb04bd671e
The v1.3.13 does not build immediately without some help:
- the configure step fails, because it fails to build some test program.
This test program fails to build because_FORTIFY_SOURCEis defined twice, it is passed as _FORTIFY_SOURCE=1 by default by buildroot, and this new libxmlsec1 version has hardening enabled by default, which sets _FORTIFY_SOURCE=2. This issue is fixed by preserving the former behavior, ie passing --disable-hardening at configure time.
- the toolchain wrapper raises an error about some system headers being included:aarch64-linux-gcc: ERROR: unsafe header/library path used in \ cross-compilation: '-I/usr/include/xmlsec1'
Quoted 8 lines
This error is due to some fuzzer program now being part of the standard build, and missing some cflags. The corresponding patch has been sent and integrated upstream, and backported in this commit
- The same fuzzer keep on using some DES related APIs even when --disable-des is passed. The issue is already fixed upstream, this commit backports this patch as well.Signed-off-by Alexis Lothoré <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot