Displaying 3 results from an estimated 3 matches for "0628cef".
Did you mean:
0628a6f
2013 Dec 03
0
[PATCH] nfsmount: memset uses sizeof pointer as length
...a couple of suspicious memset lengths which turned
out to be real bugs.
Signed-off-by: Anton Blanchard <anton at samba.org>
---
usr/kinit/nfsmount/sunrpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/kinit/nfsmount/sunrpc.c b/usr/kinit/nfsmount/sunrpc.c
index 0628cef..0a7fcf5 100644
--- a/usr/kinit/nfsmount/sunrpc.c
+++ b/usr/kinit/nfsmount/sunrpc.c
@@ -149,7 +149,7 @@ struct client *tcp_client(uint32_t server, uint16_t port, uint32_t flags)
goto bail;
}
- memset(clnt, 0, sizeof(clnt));
+ memset(clnt, 0, sizeof(*clnt));
if ((sock = socket(PF_INET, SO...
2013 Dec 03
0
[klibc:master] nfsmount: memset uses sizeof pointer as length
...o be real bugs.
Signed-off-by: Anton Blanchard <anton at samba.org>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
usr/kinit/nfsmount/sunrpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/kinit/nfsmount/sunrpc.c b/usr/kinit/nfsmount/sunrpc.c
index 0628cef..0a7fcf5 100644
--- a/usr/kinit/nfsmount/sunrpc.c
+++ b/usr/kinit/nfsmount/sunrpc.c
@@ -149,7 +149,7 @@ struct client *tcp_client(uint32_t server, uint16_t port, uint32_t flags)
goto bail;
}
- memset(clnt, 0, sizeof(clnt));
+ memset(clnt, 0, sizeof(*clnt));
if ((sock = socket(PF_INET, SO...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
several errno.h for no good reasons.
cleanup losesetup which is not using getopt_long,
thus doesn't need getopt.h included.
Move stdarg.h include up in losesetup to more proper place.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/utils/dmesg.c | 1 -
usr/utils/losetup.c | 4 +---
usr/utils/mkfifo.c | 1 -
usr/utils/nuke.c | 1 -
usr/utils/umount.c | 1