[LOCALSPL]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 3 Jun 2017 06:46:34 +0000 (06:46 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 3 Jun 2017 06:46:34 +0000 (06:46 +0000)
- Fix out-of-bounds access in _LocalGetPrinterLevel5. Patch by Ivan Rodionov.
CORE-13356 #resolve

svn path=/trunk/; revision=74757

reactos/win32ss/printing/providers/localspl/printers.c

index 4bbcf6e..413c460 100644 (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);