Fix bug 6546: Avoid accessing buf[-1] if NUL byte comes from fgets
commit11bd972d60964fc8442c15ed2530ff61cb443ccc
authorVolker Lendecke <vl@samba.org>
Mon, 30 Nov 2009 20:48:33 +0000 (30 21:48 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 8 Dec 2009 08:15:16 +0000 (8 09:15 +0100)
tree208cc77c5dfc96c5cbba1818bf60ab3ab2101600
parentd0cac2dc28fe344eca3f86a681ef5dbd290370ea
Fix bug 6546: Avoid accessing buf[-1] if NUL byte comes from fgets
(cherry picked from commit c0282f8f7d40b893610fdc235cb130f1fedbeb13)
source3/utils/eventlogadm.c
source3/utils/net_rpc.c
source3/utils/smbget.c
source4/torture/nbench/nbench.c