Hi,
this patch make bb_ask function zero its memory every time
as stated in a comment in sulogin.c.
--- libbb/bb_askpass.c.original 2013-05-20 15:27:45.309890577 +0200
+++ libbb/bb_askpass.c 2013-05-20 15:28:19.207572983 +0200
@@ -60,7 +60,10 @@
}
if (!passwd)
- passwd = xmalloc(sizeof_passwd);
+ passwd = xzalloc(sizeof_passwd);
+ else
+ memset(passwd, 0, sizeof_passwd);
+
ret = passwd;
i = 0;
while (1) {
This is mostly paranoia.
Ciao,
Tito
Make bb_ask really zero its memory every time
as stated in some comments in sulogin code.
Signed-off-by: Tito Ragusa <[email protected]>
--- libbb/bb_askpass.c.original 2013-05-20 15:27:45.309890577 +0200
+++ libbb/bb_askpass.c 2013-05-20 15:28:19.207572983 +0200
@@ -60,7 +60,10 @@
}
if (!passwd)
- passwd = xmalloc(sizeof_passwd);
+ passwd = xzalloc(sizeof_passwd);
+ else
+ memset(passwd, 0, sizeof_passwd);
+
ret = passwd;
i = 0;
while (1) {
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox