lib/fuzzing: Avoid NULL pointer de-ref from 0-length input
authorAndrew Bartlett <abartlet@samba.org>
Thu, 7 Nov 2019 02:08:18 +0000 (15:08 +1300)
committerJeremy Allison <jra@samba.org>
Mon, 18 Nov 2019 19:39:30 +0000 (19:39 +0000)
commit43bc0b2c763284ec63ca1e750602f6a9b354f9ae
tree9783e6734590c2c3e276071aea8055316fd5cae0
parent4aea5c0972de53c143530cc42ef6d3b8cfafb973
lib/fuzzing: Avoid NULL pointer de-ref from 0-length input

fmemopen() does not like 0-length input.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/fuzzing/fuzz_oLschema2ldif.c
lib/fuzzing/fuzz_tiniparser.c