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:
commit
71a14be8e7
3 changed files with 11 additions and 1 deletions
|
@ -45,7 +45,7 @@ class MurmurHash3_64 {
|
|||
}
|
||||
}
|
||||
} else if (isArrayBuffer(input)) {
|
||||
data = input;
|
||||
data = input.slice();
|
||||
length = data.byteLength;
|
||||
} else {
|
||||
throw new Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue