torture: Fix a buffer overrun
authorVolker Lendecke <vl@samba.org>
Fri, 28 Feb 2014 15:50:21 +0000 (15:50 +0000)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 28 Feb 2014 16:49:01 +0000 (17:49 +0100)
commit1dd2351840c41232d8aea912be6304b256ea0329
tree9c590b5ab4b1e5b5d13b18027419612559fa0001
parentca3998d0436747f637b04eb32eb6c17fce3e2159
torture: Fix a buffer overrun

In test_EnumPrinterDrivers we go up to driver level 8. In C, this means
we are accessing the 9th entry in the following lines:

        ctx->driver_count[level]        = count;
        ctx->drivers[level]             = info;

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source4/torture/rpc/spoolss.c