Possible string handling bug in samba 2.2.8a

M A Young m.a.young at durham.ac.uk
Wed Apr 16 10:01:48 GMT 2003

On Tue, 15 Apr 2003, Gerald (Jerry) Carter wrote:

> 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 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.

	Michael Young

More information about the samba-technical mailing list