git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68bb5e2
)
lib:socket: fix CID 1350010 - integer OVERFLOW_BEFORE_WIDEN
author
Michael Adam
<obnox@samba.org>
Wed, 3 Feb 2016 10:28:32 +0000
(11:28 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 3 Feb 2016 23:35:10 +0000
(
00:35
+0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Feb 4 00:35:11 CET 2016 on sn-devel-144
lib/socket/interfaces.c
patch
|
blob
|
history
diff --git
a/lib/socket/interfaces.c
b/lib/socket/interfaces.c
index 98341e2ba0794d1a5e2535117a0cbc4251caa5ee..cf094f0b4c56607ce6ab2f6a7fc8505828409a5c 100644
(file)
--- a/
lib/socket/interfaces.c
+++ b/
lib/socket/interfaces.c
@@
-160,7
+160,7
@@
static void query_iface_speed_from_name(const char *name, uint64_t *speed)
if (ret == -1) {
goto done;
}
- *speed = (ethtool_cmd_speed(&ecmd)) * 1000 * 1000;
+ *speed = (
(uint64_t)
ethtool_cmd_speed(&ecmd)) * 1000 * 1000;
done:
(void)close(fd);