Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

applesign

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

applesign - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

14

lib/bin.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc