mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:25:44 +00:00
[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:
parent
21b16a63ed
commit
e98a0d8a85
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue