Author: dmiller
Date: Tue Jul 15 11:25:09 2025
New Revision: 39254
Log:
Cast wider before shifting.
Modified:
nmap/MACLookup.cc
Modified: nmap/MACLookup.cc
==============================================================================
--- nmap/MACLookup.cc (original)
+++ nmap/MACLookup.cc Tue Jul 15 11:25:09 2025
@@ -188,7 +188,7 @@
mac_prefix_init();
/* MA-S: 36 bits (9 nibbles)*/
- key = ((u64)prefix[0] << 28) + (prefix[1] << 20) + (prefix[2] << 12) +
(prefix[3] << 4) + (prefix[4] >> 4);
+ key = ((u64)prefix[0] << 28) + ((u64)prefix[1] << 20) + ((u64)prefix[2] <<
12) + ((u64)prefix[3] << 4) + (prefix[4] >> 4);
corp = findMACEntry(((u64)9 << 36) + key);
if (corp)
return corp;
_______________________________________________
Sent through the svn mailing list
https://nmap.org/mailman/listinfo/svn