This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer]Add a test for defeating a hash sum.
ClosedPublic

Authored by krasin on Sep 4 2015, 2:15 PM.

Details

Summary

Add a test for a data followed by 4-byte hash value.
I use a slightly modified Jenkins hash function,
as described in https://en.wikipedia.org/wiki/Jenkins_hash_function

The modification is to ensure that hash(zeros) != 0.

Diff Detail

Event Timeline

krasin updated this revision to Diff 34078.Sep 4 2015, 2:15 PM
krasin retitled this revision from to [libFuzzer]Add XFAIL test for defeating a hash sum..
krasin updated this object.
krasin added a reviewer: kcc.
krasin added a subscriber: llvm-commits.
kcc accepted this revision.Sep 4 2015, 2:27 PM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 4 2015, 2:27 PM
krasin updated this revision to Diff 34264.Sep 8 2015, 2:17 PM
krasin edited edge metadata.

Reenabling the now passing test.

krasin retitled this revision from [libFuzzer]Add XFAIL test for defeating a hash sum. to [libFuzzer]Add a test for defeating a hash sum..Sep 8 2015, 2:21 PM
krasin updated this object.
krasin closed this revision.Sep 8 2015, 2:24 PM