🐛 Fix reading extra field from solidpkg
This commit is contained in:
parent
561b285f2f
commit
400be4f296
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ export default function readSolidpkg(buffer: Buffer) {
|
||||||
|
|
||||||
//read password from extra field
|
//read password from extra field
|
||||||
let encodedPassword: Uint8Array | undefined;
|
let encodedPassword: Uint8Array | undefined;
|
||||||
while (pos + 4 <= extraFieldLength) {
|
const extraFieldEnd = pos + extraFieldLength;
|
||||||
|
while (pos + 4 <= extraFieldEnd) {
|
||||||
const fieldId = dv.getUint16(pos, true); pos += 2;
|
const fieldId = dv.getUint16(pos, true); pos += 2;
|
||||||
const fieldLength = dv.getUint16(pos, true); pos += 2;
|
const fieldLength = dv.getUint16(pos, true); pos += 2;
|
||||||
switch (fieldId) {
|
switch (fieldId) {
|
||||||
|
|
Loading…
Reference in a new issue