const up xmlsec

Change-Id: I67e5946baaac3dbb7dd6aed429d66ac97673f615
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187789
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2025-07-12 21:35:46 +01:00
parent 752fe6689b
commit 3a86642a4b
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 49382b442e2c1c651019c58966f7a6378759954b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolan.mcnamara@collabora.com>
Date: Sat, 12 Jul 2025 21:33:34 +0100
Subject: [PATCH] const up xmlSecErrorsTable
to move it out of the .data table
---
src/errors.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/errors.c b/src/errors.c
index 075265d6..fe7e6601 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -41,7 +41,7 @@ struct _xmlSecErrorDescription {
const char* errorMsg;
};
-static xmlSecErrorDescription xmlSecErrorsTable[XMLSEC_ERRORS_MAX_NUMBER + 1] = {
+static const xmlSecErrorDescription xmlSecErrorsTable[XMLSEC_ERRORS_MAX_NUMBER + 1] = {
{ XMLSEC_ERRORS_R_XMLSEC_FAILED, "xmlsec library function failed" },
{ XMLSEC_ERRORS_R_MALLOC_FAILED, "malloc function failed" },
{ XMLSEC_ERRORS_R_STRDUP_FAILED, "strdup function failed" },
--
2.49.0

View File

@ -10,6 +10,8 @@
xmlsec_patches :=
# Remove this when Ubuntu 20.04 is EOL in 2025.
xmlsec_patches += old-nss.patch.1
# Upstreamed as: https://github.com/lsh123/xmlsec/pull/937
xmlsec_patches += 0001-const-up-xmlSecErrorsTable.patch
$(eval $(call gb_UnpackedTarball_UnpackedTarball,xmlsec))