2.0.4b: file structure leackage. Serious bug!

Andrej Borsenkow borsenkow.msk at sni.de
Mon Jun 21 15:11:59 GMT 1999


This is 2.0.4b + Win2k patch of Matt Chapman.

Problem description: trying to extract large (~50M) Zip archive using WinZIP
(context explorer menu -> extract to), I got errors:

[1999/06/21 17:55:43, 0] smbd/files.c:(85)
  ERROR! Out of file structures

Analysing it, it looks the following problem:

WinZIP tries to create directory structure for every extracted file. Every time
it does so, SAMBA allocates a file structure for every directory level created -
but never frees it at all. So, after WinZIP is through with

\a\b\c\d\file

SAMBA frees file structure for ``file'' but not structures for a,b,c,d.

It is not related to system files - they are properly closed

I attach log level 5 that show this.

[sorry, I copy this to samba-technical as the last time I never got any response
from samba-bugs]

regards

/andrej
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb.filestruct.leak.gz
Type: application/x-gzip
Size: 11071 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/19990621/f13afbf6/smb.filestruct.leak.bin


More information about the samba-technical mailing list