Merge remote-tracking branch 'origin/c10s' into a10s

This commit is contained in:
Andrew Lukoshko 2024-09-26 11:47:30 +00:00
commit 7df498bcb1
2 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,31 @@
From 106ffad93e3145747b9d6ea2a4872ed1bdc5f595 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com>
Date: Tue, 20 Aug 2024 08:18:15 +0200
Subject: [PATCH] Fix a cast
The size_t is implementation-dependent data type, it shouldn't be
cast to unsigned int.
Fixes failing test probes/filehash58/test_probes_filehash58.sh
on s390x architecture.
---
src/OVAL/probes/crapi/digest.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/OVAL/probes/crapi/digest.c b/src/OVAL/probes/crapi/digest.c
index 96f638d4a..2fc1c6998 100644
--- a/src/OVAL/probes/crapi/digest.c
+++ b/src/OVAL/probes/crapi/digest.c
@@ -252,7 +252,9 @@ static int crapi_digest_update(struct crapi_digest_ctx *ctx, void *bptr, size_t
static int crapi_digest_fini(struct crapi_digest_ctx *ctx, crapi_alg_t alg)
{
#if defined(HAVE_NSS3)
- HASH_End (ctx->ctx, ctx->dst, (unsigned int *)ctx->size, *ctx->size);
+ unsigned int result_len;
+ HASH_End(ctx->ctx, ctx->dst, &result_len, *ctx->size);
+ *ctx->size = result_len;
HASH_Destroy (ctx->ctx);
#elif defined(HAVE_GCRYPT)
void *buffer;
--
2.46.0

View File

@ -1,12 +1,13 @@
Name: openscap
Version: 1.4.0
Release: 1%{?dist}.alma.1
Release: 2%{?dist}.alma.1
Epoch: 1
Summary: Set of open source libraries enabling integration of the SCAP line of standards
License: LGPL-2.1-or-later
URL: http://www.open-scap.org/
VCS: https://github.com/OpenSCAP/openscap
Source0: https://github.com/OpenSCAP/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch1: openscap-1.4.1-PR2154-filehash58.patch
%global common_description %{expand:
OpenSCAP is a set of open source libraries providing an easier path
@ -160,9 +161,12 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%changelog
* Tue Sep 03 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1:1.4.0-1.alma.1
* Tue Sep 03 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1:1.4.0-2.alma.1
- Add AlmaLinux definitions
* Tue Aug 20 2024 Jan Černý <jcerny@redhat.com> - 1:1.4.0-2
- Fix filehash58 probe on s390x architecture
* Thu Aug 01 2024 Jan Černý <jcerny@redhat.com> - 1:1.4.0-1
- Update to the latest upstream release (RHEL-53981)
- Remove openscap-devel, openscap-engine-sce-devel and openscap-python3 subpackages