!50 [sync] PR-48: 【openEuler-22.03-LTS-SP1】Fix char overflow
From: @openeuler-sync-bot Reviewed-by: @HuaxinLuGitee Signed-off-by: @HuaxinLuGitee
This commit is contained in:
commit
e502f25e6a
29
backport-Use-int-instead-of-char-for-variable-c.patch
Normal file
29
backport-Use-int-instead-of-char-for-variable-c.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 4013caeda28f67980df1bc8fcd95e80135d248e8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yixiangzhike <yixiangzhike007@163.com>
|
||||||
|
Date: Mon, 16 Jan 2023 20:28:28 +0800
|
||||||
|
Subject: [PATCH] Use int instead of char for variable c
|
||||||
|
|
||||||
|
In some systems, char is compiled as unsigned char by default,
|
||||||
|
as a result, testsuite always fails in abnormal process.
|
||||||
|
|
||||||
|
Signed-off-by: yixiangzhike <yixiangzhike007@163.com>
|
||||||
|
---
|
||||||
|
utils/testsuite.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/utils/testsuite.c b/utils/testsuite.c
|
||||||
|
index 12da7f74..79e861d2 100644
|
||||||
|
--- a/utils/testsuite.c
|
||||||
|
+++ b/utils/testsuite.c
|
||||||
|
@@ -2938,7 +2938,7 @@ void usage(void)
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
- char c;
|
||||||
|
+ int c;
|
||||||
|
int random_tests = -1;
|
||||||
|
int do_all = 0;
|
||||||
|
int skip_do_correct = 0;
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: cyrus-sasl
|
Name: cyrus-sasl
|
||||||
Version: 2.1.28
|
Version: 2.1.28
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: The Cyrus SASL API Implementation
|
Summary: The Cyrus SASL API Implementation
|
||||||
|
|
||||||
License: BSD with advertising
|
License: BSD with advertising
|
||||||
@ -16,6 +16,7 @@ Source1: saslauthd.service
|
|||||||
Source2: saslauthd.sysconfig
|
Source2: saslauthd.sysconfig
|
||||||
|
|
||||||
Patch1: backport-Fix-earlier-554-commit-to-use-fetch_errno-instead-of.patch
|
Patch1: backport-Fix-earlier-554-commit-to-use-fetch_errno-instead-of.patch
|
||||||
|
Patch2: backport-Use-int-instead-of-char-for-variable-c.patch
|
||||||
|
|
||||||
BuildRequires: autoconf, automake, libtool, gdbm-devel, groff
|
BuildRequires: autoconf, automake, libtool, gdbm-devel, groff
|
||||||
BuildRequires: krb5-devel >= 1.2.2, openssl-devel, pam-devel, pkgconfig
|
BuildRequires: krb5-devel >= 1.2.2, openssl-devel, pam-devel, pkgconfig
|
||||||
@ -258,6 +259,9 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 11 2024 yixiangzhike <yixiangzhike007@163.com> - 2.1.28-2
|
||||||
|
- backport upstream patch to fix char overflow
|
||||||
|
|
||||||
* Tue Oct 25 2022 yixiangzhike <yixiangzhike007@163.com> - 2.1.28-1
|
* Tue Oct 25 2022 yixiangzhike <yixiangzhike007@163.com> - 2.1.28-1
|
||||||
- update to 2.1.28
|
- update to 2.1.28
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user