Skip to content

Commit 07101ac

Browse files
authored
Remove ASAR 240 bytes of JSON payload length limitation (#453)
1 parent 3df0ed1 commit 07101ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ async function _fromTokenizer(tokenizer) {
12481248

12491249
if (check([0x04, 0x00, 0x00, 0x00]) && buffer.length >= 16) { // Rough & quick check Pickle/ASAR
12501250
const jsonSize = buffer.readUInt32LE(12);
1251-
if (jsonSize > 12 && jsonSize < 240 && buffer.length >= jsonSize + 16) {
1251+
if (jsonSize > 12 && buffer.length >= jsonSize + 16) {
12521252
try {
12531253
const header = buffer.slice(16, jsonSize + 16).toString();
12541254
const json = JSON.parse(header);

0 commit comments

Comments
 (0)