[Samba] 2.2.8a - string overflow by 6 in string_sub

Thomas Bork knuffelmail at gmx.de
Thu Jan 22 07:47:07 GMT 2004


Hi,

smbd eats a lot of cpu time and there is this error in the log:

[2004/01/21 23:30:00, 0] lib/util_str.c:string_sub(1221)
   ERROR: string overflow by 6 in string_sub(%m, 73)

  21:53:20 up 15 min,  2 users,  load average: 2.37, 2.15, 1.18
   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  1123 root      14   0  2084 1540  1300 R    49.3  2.5   5:09 smbd
  1137 root      14   0  2016 1512  1276 R    48.7  2.4   3:58 smbd
   555 root       9   0  1048  992   816 S     0.9  1.6   0:06 top

I googled around and found some possible reasons:

- incorrect macro handling (%g versus %G)
- strings over 1024 characters in smb.conf

I will look into this. But I think it would be very nice, if this error will
be fixed in 2.2.8a, because samba 3.x seemes too unstable for production
environments (if I look at the postings since version 3.0 here).
I woold live with samba 2_2 in cvs if the error is fixed there, but here are
other show stoppers:

https://bugzilla.samba.org/show_bug.cgi?id=543

Please help to fix this.

der tom

-- 
der tom



More information about the samba mailing list