diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2020-06-12 14:26:38 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-07-02 09:01:41 +0000 |
commit | bc896d75295870c410709dc590364bd9916240cf (patch) | |
tree | 58d24dc3c9e5d60cb90f60aed309d64a981f836c /librpc/wscript_build | |
parent | f4b2fd00fe34e3e8d934da3a11329f3d79b437d9 (diff) | |
download | samba-bc896d75295870c410709dc590364bd9916240cf.tar.gz |
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
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'librpc/wscript_build')
-rw-r--r-- | librpc/wscript_build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/librpc/wscript_build b/librpc/wscript_build index aa112890a7a..194e5bdb50c 100644 --- a/librpc/wscript_build +++ b/librpc/wscript_build @@ -711,3 +711,13 @@ bld.SAMBA_BINARY('test_ndr', ndr ''', for_selftest=True) + +bld.SAMBA_BINARY('test_ndr_dns_nbt', + source='tests/test_ndr_dns_nbt.c', + deps=''' + cmocka + ndr + ndr_nbt + NDR_DNS + ''', + for_selftest=True) |