there are places in the samba3 code that don't check properly for
commit7847b611acff4ed2453aaacdd1455ceaf84bb431
authorAndrew Tridgell <tridge@samba.org>
Mon, 2 Feb 2004 12:09:35 +0000 (2 12:09 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 2 Feb 2004 12:09:35 +0000 (2 12:09 +0000)
tree807e0ee09664b7cd806743aad32db2cc3eba8631
parent423ad9097448e5a07ba26172302450ae7165d85a
there are places in the samba3 code that don't check properly for
packet-termination of strings. This change ensures that when we go
past the end of a packet we hit 2 null bytes, thus terminating. We are
relying on the SAFETY_MARGIN packet allocation stuff here.
(This used to be commit 655ec168288159f5c0961ed8cbdd84c4e14eab26)
source3/lib/util_sock.c