Possible string handling bug in samba 2.2.8a

Gerald (Jerry) Carter jerry at samba.org
Tue Apr 15 21:40:20 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 15 Apr 2003, M A Young wrote:

> I have just upgraded our main print server to 2.2.8a (from 2.0.10), and
> had my a few host samba log files filled up (until the file system ran out
> of disk space) by errors like
> [2003/04/15 01:49:16, 0] lib/util_str.c:string_sub(1221)
>   ERROR: string overflow by 4 in string_sub(%I, 406)
> starting as soon as a session connected.
> 
> I believe the problem was caused by a long print command given below
> (required to provide logging, and to work around some PC configuration
> errors).
....
> The same command (with trivial modifications) worked with the previous
> samba version.

I woundn't call this a bug.  Perhaps a limitation though.
You are limited to 1024 characters for parameter string values.
Why not just package your print command in a script?




cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+nHxEIR7qMdg1EfYRAkdXAJ4v6Us1Rj/JHiw8ObyMewzeS57v0ACfXTUd
UaK+OfrPWF86msnbApQn8UQ=
=ckWn
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list