Comparing version 4.1.1 to 4.1.2
@@ -41,4 +41,4 @@ 'use strict'; | ||
for (const slice of butter) { | ||
const mm = Buffer.from(slice.data, 0, 4); | ||
const mt = Buffer.from(slice.data, 0xc, 4); | ||
const mm = slice.data.slice(0, 4); | ||
const mt = slice.data.slice(0xc, 0xc + 4); | ||
if (isValidMacho(mm, mt)) { | ||
@@ -63,5 +63,5 @@ return true; | ||
for (const a of magics) { | ||
if (!machoMagic.compare(Buffer.from(a))) { | ||
if (!machoMagic.slice(0, 4).compare(Buffer.from(a))) { | ||
// ensure the macho type is supported by ldid2 | ||
const fileType = machoType[3]; | ||
const fileType = machoType[0]; | ||
switch (fileType) { | ||
@@ -71,7 +71,5 @@ case MH_EXECUTE: | ||
case MH_BUNDLE: | ||
break; | ||
default: | ||
return false; | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
} | ||
@@ -78,0 +76,0 @@ } |
@@ -99,3 +99,3 @@ { | ||
"name": "applesign", | ||
"version": "4.1.1" | ||
"version": "4.1.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94981
2396