Possible string handling bug in samba 2.2.8a

Gerald (Jerry) Carter jerry at samba.org
Wed Apr 16 12:55:32 GMT 2003


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

On Wed, 16 Apr 2003, M A Young wrote:

> > > [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 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?
> 
> Yes, but by my calculations even with all the % values substituted the
> string is only about 800 characters. I could use a script instead, though
> it looks like the problem I was working around with this command has now
> been fixed anyway.

I checked and it is definitely a char[1024].  A level 10 debug would 
probably explain things more to you wrt to why the string is being 
expanded over that.




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+nVLFIR7qMdg1EfYRAvr1AKCj/2P9iK1lpYU40gCP99WRu6n+iQCgsAD0
E9zh+7cuzkYN/2MTH7TFxyE=
=ameb
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list