Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174229297
D12210.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
D12210.id.diff
View Options
Index: lib/libefivar/uefi-dplib.h
===================================================================
--- lib/libefivar/uefi-dplib.h
+++ lib/libefivar/uefi-dplib.h
@@ -527,7 +527,7 @@
#define StrnCmp(a, b, n) strncmp(a, b, n)
#define StrnLenS(str, max) strlen(str)
#define Strtoi(x) strtol(x, NULL, 0)
-#define Strtoi64(x, y) *(long long *)y = strtoll(x, NULL, 0)
+#define Strtoi64(x, y) do { *(y) = strtoll((x), NULL, 0); } while (0)
#define SwapBytes64(u64) bswap64(u64)
#define UnicodeStrToAsciiStrS(src, dest, len) strlcpy(dest, src, len)
#define ZeroMem(p,l) memset(p, 0, l)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 2, 1:24 PM (1 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39998869
Default Alt Text
D12210.id.diff (586 B)
Attached To
Mode
D12210: libefivar: avoid type punning in Strtoi64
Attached
Detach File
Event Timeline
Log In to Comment