1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #12534 from Snuffleupagus/murmurhash-slice

Ensure that `MurmurHash3_64.update` handles `ArrayBuffer` input correctly, to avoid hash-collisions (issue 12533)
This commit is contained in:
Tim van der Meij 2020-10-26 23:34:03 +01:00 committed by GitHub
commit 71a14be8e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View file

@ -45,7 +45,7 @@ class MurmurHash3_64 {
}
}
} else if (isArrayBuffer(input)) {
data = input;
data = input.slice();
length = data.byteLength;
} else {
throw new Error(