[LOCALSPL]

- Fix out-of-bounds access in _LocalGetPrinterLevel5. Patch by Ivan Rodionov.
CORE-13356 #resolve

svn path=/trunk/; revision=74757
This commit is contained in:
Thomas Faber 2017-06-03 06:46:34 +00:00
parent 21b16a63ed
commit e98a0d8a85

View file

@ -756,7 +756,7 @@ _LocalGetPrinterLevel5(PLOCAL_PRINTER pPrinter, PPRINTER_INFO_5W* ppPrinterInfo,
size_t cbPrinterName;
size_t cbPortName;
PWSTR p;
PWSTR pwszStrings[1];
PWSTR pwszStrings[2];
// Calculate the string lengths.
cbPrinterName = (cchComputerName + wcslen(pPrinter->pwszPrinterName) + 1) * sizeof(WCHAR);