Group :: System/Base
RPM: util-linux
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0004-ALT-Do-not-accept-gecos-field-sizes-longer-than-64.patch
Download
Download
From 8644715924165d5793b87ad3086e966f2b59d343 Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Thu, 14 May 2020 15:39:17 +0300
Subject: ALT: Do not accept gecos field sizes longer than 64
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
---
login-utils/chfn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/login-utils/chfn.c b/login-utils/chfn.c
index 752d59821..2f040f926 100644
--- a/login-utils/chfn.c
+++ b/login-utils/chfn.c
@@ -82,7 +82,7 @@ struct chfn_control {
};
/* we do not accept gecos field sizes longer than MAX_FIELD_SIZE */
-#define MAX_FIELD_SIZE 256
+#define MAX_FIELD_SIZE 64
static void __attribute__((__noreturn__)) usage(void)
{
--
2.25.4