🚑 Fix SSN file reader
This commit is contained in:
parent
a48956f504
commit
6e292106e3
1 changed files with 2 additions and 1 deletions
|
@ -122,6 +122,7 @@ export default function readSsnFile(buffer: ArrayBuffer): ISsnFileEntry[] {
|
|||
throw new Error(`Password is too long, it should be 120 characters at most but it is ${fieldLength} characters long.`);
|
||||
}
|
||||
encodedPassword = new Uint8Array(buffer, pos, fieldLength);
|
||||
pos += fieldLength;
|
||||
break;
|
||||
}
|
||||
case 0x80AE: //diff type
|
||||
|
@ -137,8 +138,8 @@ export default function readSsnFile(buffer: ArrayBuffer): ISsnFileEntry[] {
|
|||
break;
|
||||
default:
|
||||
//unknown field, ignore it
|
||||
pos += fieldLength;
|
||||
}
|
||||
pos += fieldLength;
|
||||
}
|
||||
pos += fileCommentLength;
|
||||
|
||||
|
|
Loading…
Reference in a new issue