librpc: Do not follow a NULL pointer when calculating the size of a structure
authorAndrew Bartlett <abartlet@samba.org>
Tue, 19 Nov 2019 03:58:57 +0000 (16:58 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Dec 2019 02:30:40 +0000 (02:30 +0000)
commit362d70ff2fb6fb6265fce03da6b09dd4756dc604
treefe558af19230cf5f97ab529b6b71e1a9756f5a6b
parent5eb560d25e9104dc02477a6bf819d0c37e8afb86
librpc: Do not follow a NULL pointer when calculating the size of a structure

Found by Douglas Bagnall using Hongfuzz and the new fuzz_ndr_X
fuzzer.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
librpc/ndr/ndr.c
selftest/knownfail.d/ndrdump-NULL-struct [deleted file]