Changeset 862 for trunk/server/source4/torture/smb2
- Timestamp:
- May 13, 2014, 11:39:04 AM (11 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/source4/torture/smb2/create.c
r745 r862 445 445 CHECK_STATUS(status, NT_STATUS_OK); 446 446 447 torture_comment(tctx, "Testing bad tag length\n"); 447 torture_comment(tctx, "Testing bad tag length 0\n"); 448 ZERO_STRUCT(io.in.blobs); 449 status = smb2_create_blob_add(tctx, &io.in.blobs, 450 "x", data_blob(NULL, 0)); 451 CHECK_STATUS(status, NT_STATUS_OK); 452 status = smb2_create(tree, tctx, &io); 453 CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); 454 455 torture_comment(tctx, "Testing bad tag length 1\n"); 456 ZERO_STRUCT(io.in.blobs); 457 status = smb2_create_blob_add(tctx, &io.in.blobs, 458 "x", data_blob(NULL, 0)); 459 CHECK_STATUS(status, NT_STATUS_OK); 460 status = smb2_create(tree, tctx, &io); 461 CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); 462 463 torture_comment(tctx, "Testing bad tag length 2\n"); 464 ZERO_STRUCT(io.in.blobs); 465 status = smb2_create_blob_add(tctx, &io.in.blobs, 466 "xx", data_blob(NULL, 0)); 467 CHECK_STATUS(status, NT_STATUS_OK); 468 status = smb2_create(tree, tctx, &io); 469 CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); 470 471 torture_comment(tctx, "Testing bad tag length 3\n"); 472 ZERO_STRUCT(io.in.blobs); 448 473 status = smb2_create_blob_add(tctx, &io.in.blobs, 449 474 "xxx", data_blob(NULL, 0)); 450 475 CHECK_STATUS(status, NT_STATUS_OK); 451 452 476 status = smb2_create(tree, tctx, &io); 453 477 CHECK_STATUS(status, NT_STATUS_INVALID_PARAMETER); 478 479 torture_comment(tctx, "Testing tag length 4\n"); 480 ZERO_STRUCT(io.in.blobs); 481 status = smb2_create_blob_add(tctx, &io.in.blobs, 482 "xxxx", data_blob(NULL, 0)); 483 CHECK_STATUS(status, NT_STATUS_OK); 484 status = smb2_create(tree, tctx, &io); 485 CHECK_STATUS(status, NT_STATUS_OK); 486 487 torture_comment(tctx, "Testing tag length 5\n"); 488 ZERO_STRUCT(io.in.blobs); 489 status = smb2_create_blob_add(tctx, &io.in.blobs, 490 "xxxxx", data_blob(NULL, 0)); 491 CHECK_STATUS(status, NT_STATUS_OK); 492 status = smb2_create(tree, tctx, &io); 493 CHECK_STATUS(status, NT_STATUS_OK); 494 495 torture_comment(tctx, "Testing tag length 6\n"); 496 ZERO_STRUCT(io.in.blobs); 497 status = smb2_create_blob_add(tctx, &io.in.blobs, 498 "xxxxxx", data_blob(NULL, 0)); 499 CHECK_STATUS(status, NT_STATUS_OK); 500 status = smb2_create(tree, tctx, &io); 501 CHECK_STATUS(status, NT_STATUS_OK); 502 503 torture_comment(tctx, "Testing tag length 7\n"); 504 ZERO_STRUCT(io.in.blobs); 505 status = smb2_create_blob_add(tctx, &io.in.blobs, 506 "xxxxxxx", data_blob(NULL, 0)); 507 CHECK_STATUS(status, NT_STATUS_OK); 508 status = smb2_create(tree, tctx, &io); 509 CHECK_STATUS(status, NT_STATUS_OK); 510 511 torture_comment(tctx, "Testing tag length 8\n"); 512 ZERO_STRUCT(io.in.blobs); 513 status = smb2_create_blob_add(tctx, &io.in.blobs, 514 "xxxxxxxx", data_blob(NULL, 0)); 515 CHECK_STATUS(status, NT_STATUS_OK); 516 status = smb2_create(tree, tctx, &io); 517 CHECK_STATUS(status, NT_STATUS_OK); 518 519 torture_comment(tctx, "Testing tag length 16\n"); 520 ZERO_STRUCT(io.in.blobs); 521 status = smb2_create_blob_add(tctx, &io.in.blobs, 522 "xxxxxxxxxxxxxxxx", data_blob(NULL, 0)); 523 CHECK_STATUS(status, NT_STATUS_OK); 524 status = smb2_create(tree, tctx, &io); 525 CHECK_STATUS(status, NT_STATUS_OK); 526 527 torture_comment(tctx, "Testing tag length 17\n"); 528 ZERO_STRUCT(io.in.blobs); 529 status = smb2_create_blob_add(tctx, &io.in.blobs, 530 "xxxxxxxxxxxxxxxxx", data_blob(NULL, 0)); 531 CHECK_STATUS(status, NT_STATUS_OK); 532 status = smb2_create(tree, tctx, &io); 533 CHECK_STATUS(status, NT_STATUS_OK); 534 535 torture_comment(tctx, "Testing tag length 34\n"); 536 ZERO_STRUCT(io.in.blobs); 537 status = smb2_create_blob_add(tctx, &io.in.blobs, 538 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 539 data_blob(NULL, 0)); 540 CHECK_STATUS(status, NT_STATUS_OK); 541 status = smb2_create(tree, tctx, &io); 542 CHECK_STATUS(status, NT_STATUS_OK); 454 543 455 544 smb2_deltree(tree, FNAME);
Note:
See TracChangeset
for help on using the changeset viewer.