Projects
Mega:24.09
libtomcrypt
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:libtomcrypt.spec
Changed
@@ -1,11 +1,12 @@ Name: libtomcrypt Version: 1.18.2 -Release: 5 +Release: 6 Summary: A comprehensive, portable cryptographic toolkit License: Public Domain or WTFPL URL: http://www.libtom.net/ Source0: https://github.com/libtom/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: CVE-2019-17362.patch +Patch1: backport-fix-missing-mutex-unlock.patch BuildRequires: libtommath-devel libtool %description @@ -53,6 +54,9 @@ %{_libdir}/pkgconfig/*.pc %changelog +* Tue Jul 2 2024 yixiangzhike <yixiangzhike007@163.com> - 1.18.2-6 +- backport upstream patch to fix missing mutex unlock + * Wed Apr 13 2022 yixiangzhike <yixiangzhike007@163.com> - 1.18.2-5 - enable test suite in check
View file
_service:tar_scm:backport-fix-missing-mutex-unlock.patch
Added
@@ -0,0 +1,43 @@ +From ee24a31ae1735c03d58576d2dc43274735c8fbef Mon Sep 17 00:00:00 2001 +From: ycaibb <ycaibb@gmail.com> +Date: Fri, 10 Sep 2021 19:44:54 +0800 +Subject: PATCH fix missing mutex unlock + +Fixes a missing mutex unlock on an out of memory error +in ltc_ecc_fp_save_state(). + +Originates from: https://github.com/OP-TEE/optee_os/commit/4af447d4084e293800d4e463d65003c016b91f29 + +Fixes #571 + +Comment by sj: +This patch version slightly deviates from the original patch to OP-TEE +since we don't call `XFREE(NULL)` as there exist implementations of +`free()` that don't support it. + +Signed-off-by: Ryan Cai <ycaibb@gmail.com> +Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> +Modified-by: Steffen Jaeckel <s@jaeckel.eu> +--- + src/math/fp/ltc_ecc_fp_mulmod.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/math/fp/ltc_ecc_fp_mulmod.c b/src/math/fp/ltc_ecc_fp_mulmod.c +index 5827bf3b..9be2ebf1 100644 +--- a/src/math/fp/ltc_ecc_fp_mulmod.c ++++ b/src/math/fp/ltc_ecc_fp_mulmod.c +@@ -1429,8 +1429,10 @@ int ltc_ecc_fp_save_state(unsigned char **out, unsigned long *outlen) + * and the mu INTEGER + */ + cache_entry = XCALLOC(FP_ENTRIES*(2*(1U<<FP_LUT)+4)+3, sizeof(ltc_asn1_list)); +- if (cache_entry == NULL) ++ if (cache_entry == NULL) { ++ LTC_MUTEX_UNLOCK(<c_ecc_fp_lock); + return CRYPT_MEM; ++ } + j = 1; /* handle the zero'th element later */ + + LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_SHORT_INTEGER, &fp_entries, 1); +-- +2.33.0 +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/libtomcrypt.git</param> - <param name="revision">master</param> + <param name="revision">openEuler-24.09</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2