asd8089872 发表于 2022-3-12 12:43

asar解包时报错:ERR_BUFFER_OUT_OF_BOUNDS

执行命令 asar e app.asar ./app/ 时,命令报错,报错内容如下:
$ asar e default_app.asar ./
internal/buffer.js:47
    throw new ERR_BUFFER_OUT_OF_BOUNDS();
    ^

RangeError : Attempt to write outside buffer bounds
    at boundsError (internal/buffer.js:47:11)
    at Buffer.readUInt32LE (internal/buffer.js:105:5)
    at Pickle.getPayloadSize (/usr/local/lib/node_modules/asar/node_modules/chromium-pickle-js/lib/pickle.js:192:24)
    at new PickleIterator (/usr/local/lib/node_modules/asar/node_modules/chromium-pickle-js/lib/pickle.js:27:28)
    at Pickle.createIterator (/usr/local/lib/node_modules/asar/node_modules/chromium-pickle-js/lib/pickle.js:144:12)
    at Object.module.exports.readArchiveHeaderSync (/usr/local/lib/node_modules/asar/lib/disk.js:78:31)
    at Object.module.exports.readFilesystemSync (/usr/local/lib/node_modules/asar/lib/disk.js:84:25)
    at Object.module.exports.extractAll (/usr/local/lib/node_modules/asar/lib/asar.js:174:27)
    at Command.<anonymous> (/usr/local/lib/node_modules/asar/bin/asar.js:72:10)
    at Command.listener (/usr/local/lib/node_modules/asar/node_modules/commander/index.js:413:31)

请问如何解压这种经过特殊处理的asar包呢?
asar文件的附件:https://wwi.lanzoub.com/igvJw01cuscj
页: [1]
查看完整版本: asar解包时报错:ERR_BUFFER_OUT_OF_BOUNDS