]> git.proxmox.com Git - mirror_libseccomp.git/commit - tests/.gitignore
tests: Add 50-sim-hash_collision test
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 10 Apr 2019 21:00:18 +0000 (15:00 -0600)
committerPaul Moore <paul@paul-moore.com>
Tue, 16 Apr 2019 16:18:13 +0000 (12:18 -0400)
commit7d530d309c894c4a3beaa78529821dd87611111b
tree10d561743aa5c1c0167e67b0b5bc7ac814420721
parent234add8d8fc541d472332f5324b9af50ad9523bc
tests: Add 50-sim-hash_collision test

libseccomp utilizes a hash table to manage BPF blocks.  It
currently employs MurmurHash3 where the key is the hashed values
of the BPF instruction blocks, the accumulator start, and the
accumulator end.  This test was added because of a mishandled
hash collision reported by Tor in GitHub issue #148.
* https://github.com/seccomp/libseccomp/issues/148

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
tests/.gitignore
tests/50-sim-hash_collision.c [new file with mode: 0644]
tests/50-sim-hash_collision.py [new file with mode: 0755]
tests/50-sim-hash_collision.tests [new file with mode: 0644]
tests/Makefile.am