We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa9bb9 commit b78e9daCopy full SHA for b78e9da
.gitignore
@@ -2,6 +2,7 @@
2
DerivedData
3
Lilu.kext
4
xcuserdata
5
+xcshareddata
6
project.xcworkspace
7
build
8
VirtualSmcPkg/Binaries
Tools/smcread/smcread.c
@@ -403,7 +403,7 @@ static int smc_dump_keys(void) {
403
if (result == 0) {
404
printMacosVersion();
405
406
- uint32_t numk = __builtin_bswap32(*(uint32_t *)data);
+ uint32_t numk = __builtin_bswap32(((uint32_t)data[0]) | ((uint32_t)data[1] << 8U) | ((uint32_t)data[2] << 16U) | ((uint32_t)data[3] << 24U));
407
printf("Public keys (%u):\n", numk);
408
409
bool has_const = false;
0 commit comments