From 07101ac55010761df0955f9b140b23f1c0b7849c Mon Sep 17 00:00:00 2001 From: Borewit Date: Fri, 28 May 2021 07:53:24 +0200 Subject: [PATCH] Remove ASAR 240 bytes of JSON payload length limitation (#453) --- core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.js b/core.js index 00fe485d..f0454308 100644 --- a/core.js +++ b/core.js @@ -1248,7 +1248,7 @@ async function _fromTokenizer(tokenizer) { if (check([0x04, 0x00, 0x00, 0x00]) && buffer.length >= 16) { // Rough & quick check Pickle/ASAR const jsonSize = buffer.readUInt32LE(12); - if (jsonSize > 12 && jsonSize < 240 && buffer.length >= jsonSize + 16) { + if (jsonSize > 12 && buffer.length >= jsonSize + 16) { try { const header = buffer.slice(16, jsonSize + 16).toString(); const json = JSON.parse(header);