The Samba-Bugzilla – Attachment 11928 Details for
Bug 11802
lib/socket/interfaces: fix valgrind warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v4-4-test
tmp44.diff.txt (text/plain), 2.00 KB, created by
Stefan Metzmacher
on 2016-03-18 03:09:21 UTC
(
hide
)
Description:
Patch for v4-4-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2016-03-18 03:09:21 UTC
Size:
2.00 KB
patch
obsolete
>From 06c5412ce61ef4198dbcec152ff02b9a11d67d44 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Wed, 2 Mar 2016 18:32:53 +0100 >Subject: [PATCH] lib/socket/interfaces: Fix some uninitialied bytes. > >Valgrind reports the following: > >==26599== Syscall param ioctl(SIOCETHTOOL) points to uninitialised byte(s) >==26599== at 0x7014707: ioctl (in /usr/lib64/libc-2.22.so) >==26599== by 0x79D1585: query_iface_speed_from_name (interfaces.c:152) >==26599== by 0x79D1BBA: _get_interfaces (interfaces.c:277) >==26599== by 0x79D1E80: get_interfaces (interfaces.c:368) >==26599== by 0x508A7E3: load_interfaces (interface.c:612) >==26599== by 0x150B30: main (net.c:963) >==26599== Address 0xffefff0d8 is on thread 1's stack >==26599== in frame #1, created by query_iface_speed_from_name >(interfaces.c:130) >==26599== >==26599== Syscall param ioctl(SIOCETHTOOL) points to uninitialised byte(s) >==26599== at 0x7014707: ioctl (in /usr/lib64/libc-2.22.so) >==26599== by 0x79D15CC: query_iface_speed_from_name (interfaces.c:164) >==26599== by 0x79D1BBA: _get_interfaces (interfaces.c:277) >==26599== by 0x79D1E80: get_interfaces (interfaces.c:368) >==26599== by 0x508A7E3: load_interfaces (interface.c:612) >==26599== by 0x150B30: main (net.c:963) >==26599== Address 0xffefff0d8 is on thread 1's stack >==26599== in frame #1, created by query_iface_speed_from_name >(interfaces.c:130) > >Guenther > >Signed-off-by: Guenther Deschner <gd@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit 2e2f81134c86ef3146781d62d9f561f496b74ee2) >--- > lib/socket/interfaces.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/lib/socket/interfaces.c b/lib/socket/interfaces.c >index 2cabf46..dacd118 100644 >--- a/lib/socket/interfaces.c >+++ b/lib/socket/interfaces.c >@@ -145,6 +145,7 @@ static void query_iface_speed_from_name(const char *name, uint64_t *speed) > goto done; > } > >+ ZERO_STRUCT(ifr); > strncpy(ifr.ifr_name, name, IF_NAMESIZE); > > ifr.ifr_data = (void *)&edata; >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
gd
:
review+
jra
:
review+
Actions:
View
Attachments on
bug 11802
: 11928