blob: b3e2cd052efc5373228e3cd139257736e9e18da2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
Date: Mon, 4 Jun 2012 01:37:49 +0000
Subject: putpwent-segfault
===================================================================
---
lib/pwmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/lib/pwmem.c
===================================================================
--- a/lib/pwmem.c 2013-07-27 19:32:40.145321915 +0400
+++ b/lib/pwmem.c 2013-07-27 19:33:43.616469907 +0400
@@ -44,7 +44,7 @@
{
struct passwd *pw;
- pw = (struct passwd *) malloc (sizeof *pw);
+ pw = (struct passwd *) calloc (1, sizeof *pw);
if (NULL == pw) {
return NULL;
}
|