Author: tfaber
Date: Sat Jun 3 06:46:34 2017
New Revision: 74757
URL:
http://svn.reactos.org/svn/reactos?rev=74757&view=rev
Log:
[LOCALSPL]
- Fix out-of-bounds access in _LocalGetPrinterLevel5. Patch by Ivan Rodionov.
CORE-13356 #resolve
Modified:
trunk/reactos/win32ss/printing/providers/localspl/printers.c
Modified: trunk/reactos/win32ss/printing/providers/localspl/printers.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/printing/providers…
==============================================================================
--- trunk/reactos/win32ss/printing/providers/localspl/printers.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/printing/providers/localspl/printers.c [iso-8859-1] Sat Jun 3
06:46:34 2017
@@ -756,7 +756,7 @@
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);