New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

asn1-ts

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asn1-ts - npm Package Compare versions

Comparing version 7.0.8 to 7.0.9

6

dist/node/codecs/x690/decoders/decodeInteger.js

@@ -8,3 +8,3 @@ "use strict";

if (value.length === 0) {
throw new errors.ASN1SizeError("INTEGER encoded on zero bytes!");
throw new errors.ASN1SizeError("INTEGER or ENUMERATED encoded on zero bytes");
}

@@ -14,3 +14,5 @@ if (value.length > 2

|| (value[0] === 0x00 && value[1] < 0b10000000))) {
throw new errors.ASN1PaddingError("Unnecessary padding bytes on INTEGER or ENUMERATED.");
const buf = Buffer.from(value.slice(0, 16));
throw new errors.ASN1PaddingError("Unnecessary padding bytes on INTEGER or ENUMERATED. "
+ `First 16 bytes of the offending value were: 0x${buf.toString("hex")}`);
}

@@ -17,0 +19,0 @@ return (0, bigint_1.bufferToInteger)(value);

@@ -64,3 +64,3 @@ {

"types": "./dist/node/index.d.ts",
"version": "7.0.8"
"version": "7.0.9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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