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

fatmacho

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fatmacho - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

18

fat.js

@@ -14,12 +14,12 @@ 'use strict';

0x0000000a: 'ppc_32',
0x8000000a: 'ppc_64',
}
0x8000000a: 'ppc_64'
};
fat.parse = function(data, cb) {
fat.parse = function (data, cb) {
const u32 = function (x) {
return data.readUInt32BE(x);
}
};
const magic = u32(0);
if (magic !== CAFEBABE) {
throw 'invalid file format'
throw new Error('invalid file format');
}

@@ -31,4 +31,4 @@ const eof = data.length;

const cpu = u32(off);
const from = u32(off+4);
const size = u32(off+8);
const from = u32(off + 4);
const size = u32(off + 8);
if (from === 0 || size === 0) {

@@ -46,3 +46,3 @@ console.error('fat.parse: skip null entry', cmd);

size: size,
align: u32(off+12),
align: u32(off + 12),
data: data.slice(from, from + size)

@@ -52,2 +52,2 @@ });

return slices;
}
};
{
"name": "fatmacho",
"version": "0.1.1",
"version": "0.1.2",
"description": "fat-mach-o format parser",

@@ -20,5 +20,8 @@ "main": "fat.js",

"homepage": "https://github.com/nowsecure/node-fatmacho",
"devDependencies": {
"semistandard": "*"
},
"dependencies": {
"macho": "*"
"macho": "^1.4.0"
}
}
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