smb.so segfault in python2.2-samba-3.0.7
Brett Funderburg
brettf at deepfile.com
Fri Sep 24 15:27:27 GMT 2004
Using the python2.2-samba-3.0.7 binary from samba.org, the following
python script segfaults:
from samba import smb
MAXIMUM_ALLOWED = 0x02000000
S = "STNAS04"
V = "gnaxfer"
D = "MYDOMAIN"
U = "backupuser"
P = "backup"
C = {'domain': D, 'username': U, 'password': P}
smb.set_debuglevel(10)
cnn = smb.connect(S)
cnn.session_request(S)
cnn.negprot()
cnn.session_setup(C)
cnn.tconx(V)
print "GETTING FILE HANDLE"
fid = cnn.nt_create_andx('\APPS', MAXIMUM_ALLOWED)
print "QUERYING FOR SECDESC"
sd = cnn.query_secdesc(fid)
cnn.close(fid)
By contrast the same script run against the samba 3.0.2 libs generates:
prs_mem_get: reading data of size 2 would overrun buffer.
Failed to parse secdesc
Logs with debug level 10 are attached for both cases.
Actual hostnames and passwords have been changed to protect the innocent.
This script is run against a NetApp F740, ONTAP 6.4.2p6
Regards,
Brett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.7.log
Type: application/octet-stream
Size: 5846 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20040924/d2069e1c/samba-3.0.7.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.2.log
Type: application/octet-stream
Size: 6036 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20040924/d2069e1c/samba-3.0.2.obj
More information about the samba-technical
mailing list