torture: Make sure we don't overrun the buffer.
authorAndreas Schneider <asn@samba.org>
Tue, 19 Feb 2013 17:19:12 +0000 (18:19 +0100)
committerAlexander Bokovoy <ab@samba.org>
Fri, 22 Feb 2013 15:36:13 +0000 (16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/torture/smb2/dir.c

index 8cf0e1f35c17e8afad4567636b4e9bd62719d4e3..9cb85d7d57098ba5d3a073de4b885e78133bdd18 100644 (file)
@@ -891,7 +891,7 @@ static bool test_modify_search(struct torture_context *tctx,
        struct smb2_handle h;
        struct smb2_find f;
        union smb_search_data *d;
-       struct file_elem files[700] = {};
+       struct file_elem files[702] = {};
        NTSTATUS status;
        bool ret = true;
        int i;