]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/fuzzing: add fuzz_strncasecmp_ldb
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 12 May 2024 22:39:44 +0000 (10:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 23:12:32 +0000 (23:12 +0000)
commitb6974030e6a7ddb330894f46631c8da4359b2d18
treefcb5fd25b9c0f9d00f1aedb74f6cf487247b6906
parentb22e1d3207d90f102247d690bfe31db55d7b681e
lib/fuzzing: add fuzz_strncasecmp_ldb

As well as checking for the usual overflows, this asserts that
strncasecmp_ldb is always transitive, by splitting the input into 3
pieces and comparing all pairs.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/fuzzing/fuzz_strncasecmp_ldb.c [new file with mode: 0644]
lib/fuzzing/wscript_build