Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a MurmurHash3_64.update unit-test for TypedArrays which share the same underlying ArrayBuffer (PR 12534 follow-up) #12542

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

This probably ought to have been included in PR #12534, but better late than never I suppose, since it helps to more clearly demonstrate the bug in a way that a reference-test alone just cannot do.

When writing this unit-test I also noticed that it required a certain amount of "luck" to actually trigger the bug, prior to the patch, since it seems that the bug only reproduced for certain unfortunate sequences of TypedArray data. (The added unit-test contains one such, purposely simple, example.)

@Snuffleupagus Snuffleupagus changed the title Add a MurmurHash3_64.update unit-test for the TypedArrays which share the same underlying ArrayBuffer (PR 12534 follow-up) Add a MurmurHash3_64.update unit-test for TypedArrays which share the same underlying ArrayBuffer (PR 12534 follow-up) Oct 28, 2020
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/434a0e18f426911/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/434a0e18f426911/output.txt

Total script time: 3.41 mins

  • Unit Tests: FAILED

…he same underlying ArrayBuffer (PR 12534 follow-up)

This probably ought to have been included in PR 12534, but better late than never I suppose, since it helps to more clearly demonstrate the bug in a way that a reference-test alone just cannot do.

When writing this unit-test I also noticed that it required a certain amount of "luck" to actually trigger the bug, prior to the patch, since it seems that the bug only reproduced for certain *unfortunate* sequences of TypedArray data. (The added unit-test contains one such, purposely simple, example.)
@timvandermeij timvandermeij merged commit 91ca267 into mozilla:master Oct 28, 2020
@timvandermeij
Copy link
Contributor

Nice; thanks for the follow-up!

@Snuffleupagus Snuffleupagus deleted the murmurhash-slice-test branch October 29, 2020 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants