CVS update: samba/source/include
Martin Pool
mbp at samba.org
Tue Feb 26 14:09:09 EST 2002
Date: Mon Feb 25 19:09:08 2002
Author: mbp
Update of /data/cvs/samba/source/include
In directory va:/tmp/cvs-serv4160/include
Modified Files:
Tag: SAMBA_2_2
safe_string.h smb.h
Log Message:
[merge from APPLIANCE_HEAD]
"constants aren't, safe_strcat isn't."
This patch tries to fix a bug in the lpq parsing code that causes a
crash in lprng and BSD parsers when there are long lines in the
output. A too-short length parameter was passed to safe_strcat, which
provoked a signedness bug.
It also makes the lpq parser consistently use fstring routines, rather
than its own hand-crafted strlen/sizeof guff. Some variables were
renamed to make this obvious.
Finally safe_strcat is changed so that it actually does handle the
situation where strlen(dest)>maxlen, rather than crying for help by
clobbering -1 bytes of memory.
(HP CR #430)
Revisions:
safe_string.h 1.3.6.2 => 1.3.6.3
http://www.samba.org/cgi-bin/cvsweb/samba/source/include/safe_string.h?r1=1.3.6.2&r2=1.3.6.3
smb.h 1.325.2.51 => 1.325.2.52
http://www.samba.org/cgi-bin/cvsweb/samba/source/include/smb.h?r1=1.325.2.51&r2=1.325.2.52
More information about the samba-cvs
mailing list