s3/winbind: Ensure parse_domain_user() can't write beyond the end of domain[]
authorNoel Power <noel.power@suse.com>
Sun, 22 Oct 2023 10:30:19 +0000 (11:30 +0100)
committerNoel Power <npower@samba.org>
Tue, 24 Oct 2023 12:43:37 +0000 (12:43 +0000)
commit9267d9b2683cb66c6b0252aabca13f8d0c95c4aa
treedde901c54afba2284c148257e50eb0970d3b5317
parent3f4f80edba2156492645900527d628b1fab5ca4a
s3/winbind: Ensure parse_domain_user() can't write beyond the end of domain[]

fail if we try to write beyond the fstring boundry

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15467
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_util.c