mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
ca3998d043
commit
1dd2351840
@ -77,8 +77,8 @@ struct test_spoolss_context {
|
||||
union spoolss_PortInfo *ports[3];
|
||||
|
||||
/* for EnumPrinterDrivers */
|
||||
uint32_t driver_count[8];
|
||||
union spoolss_DriverInfo *drivers[8];
|
||||
uint32_t driver_count[9];
|
||||
union spoolss_DriverInfo *drivers[9];
|
||||
|
||||
/* for EnumMonitors */
|
||||
uint32_t monitor_count[3];
|
||||
|
Loading…
Reference in New Issue
Block a user