]> git.ipfire.org Git - thirdparty/samba.git/commit
CVE-2020-10745: librpc/tests: cmocka tests of dns and ndr strings
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 12 Jun 2020 02:26:38 +0000 (14:26 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jun 2020 11:04:45 +0000 (13:04 +0200)
commitb9ba23d41e0bc5f781e8a391f71b3be5f8017155
tree50e004e6ee3f02bf9d10f4359226de5a19382c70
parent6253d590d2330eadd740fdde79551f9a50f4b52f
CVE-2020-10745: librpc/tests: cmocka tests of dns and ndr strings

These time the push and pull function in isolation.

Timing should be under 0.0001 seconds on even quite old hardware; we
assert it must be under 0.2 seconds.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14378

(backported from master commit)
[abartlet@samba.org: backported due to differences in pre-existing
tests - eg test_ndr - mentioned in wscript_build and tests.py]

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
librpc/tests/test_ndr_dns_nbt.c [new file with mode: 0644]
librpc/wscript_build
selftest/knownfail.d/ndr_dns_nbt [new file with mode: 0644]
source4/selftest/tests.py