mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r11738: test larger read/write calls. If you run smbtorture with -X (to enable
'dangerous' tests) then it does a write of 160k, which causes vista to blue screen. Otherwise it does a 120k write which works fine. (This used to be commit b4c5d7d0173b94ade4c16d47ef774ad9f3c17bc8)
This commit is contained in:
parent
b16543648e
commit
6e94a67530
@ -72,9 +72,16 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
|
||||
struct smb2_read r;
|
||||
NTSTATUS status;
|
||||
DATA_BLOB data;
|
||||
int i;
|
||||
|
||||
data = data_blob_talloc(tree, NULL, 700);
|
||||
generate_random_buffer(data.data, data.length);
|
||||
if (lp_parm_bool(-1, "torture", "dangerous", False)) {
|
||||
data = data_blob_talloc(tree, NULL, 160000);
|
||||
} else {
|
||||
data = data_blob_talloc(tree, NULL, 120000);
|
||||
}
|
||||
for (i=0;i<data.length;i++) {
|
||||
data.data[i] = i;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(w);
|
||||
w.in.buffer_code = 0x31;
|
||||
|
Loading…
x
Reference in New Issue
Block a user