fuzzing: ndr set global_max_recursion.
commit2ba2ce40f9cf00e3fd898c6dddf84d571028a00f
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 29 Jan 2020 19:53:10 +0000 (30 08:53 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Feb 2020 01:02:32 +0000 (27 01:02 +0000)
tree9adf1b5fd102a1dccd5d16e6f5dfdf227cb75b74
parent2f8c3b62266b729b47d5ba25f1966786c1af0e5f
fuzzing: ndr set global_max_recursion.

Set global_max_recursion to 128, to ensure the fuzzer does not trip the
ASAN maximum stack depth which seems to be about 256?

Credit to OSS-Fuzz

REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19820
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14254

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/fuzzing/fuzz_ndr_X.c