[PATCH] make bb_ask zero its memory every time
Tito
farmatito at tiscali.it
Mon May 20 13:38:01 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb_askpass.patch
Type: text/x-patch
Size: 466 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20130520/a03275b2/attachment.bin>
More information about the busybox
mailing list