diff options
author | Martin Pool <mbp@samba.org> | 2002-02-26 03:09:11 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-02-26 03:09:11 +0000 |
commit | feae69794362c801c172dbee1efd928970a17784 (patch) | |
tree | 306666fa1779d4d1f2695ede902e23b86aebf351 /docs/htmldocs/using_samba | |
parent | ae33d801c3fc4c20442f82a0d5c29b6df7437946 (diff) | |
download | samba-feae69794362c801c172dbee1efd928970a17784.tar.gz samba-feae69794362c801c172dbee1efd928970a17784.tar.xz samba-feae69794362c801c172dbee1efd928970a17784.zip |
[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)
Diffstat (limited to 'docs/htmldocs/using_samba')
0 files changed, 0 insertions, 0 deletions