s3: net: Rewrite of reg_parse_fd() to harden against buffer overwrites.
authorJeremy Allison <jra@samba.org>
Tue, 7 May 2019 17:42:55 +0000 (10:42 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 21:26:12 +0000 (21:26 +0000)
commit11c35c8f783d359fcc3ff6f22d19aae5836a16d2
tree6348a6c1e8460af485117c1f782217a297f4db51
parent70025b4a70364a68d08e2880675449e4e4729420
s3: net: Rewrite of reg_parse_fd() to harden against buffer overwrites.

Remove unused handle_iconv_errno(). Fix leaks of iconv handles.

Found by Michael Hanselmann using fuzzing tools

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/registry/reg_parse.c