winspool: (fixes bug #3589) Result of EnumPrinterDrivers points to
unallocated memory
Detlef Riekenberg
wine.dev at web.de
Sat Oct 15 05:11:48 CDT 2005
The bug is in GetStringFromReg when the ValueName is present in the
Registry, but the Value is empty:
No space is reserved for the terminating zero.
The internal Function is used to fill strings in PRINTER_INFO_* and
DRIVER_INFO_* from the Registry.
EnumPrinters is not affected, because AddPrinter has set a Value for the
relevant Strings.
Changelog:
- Reserve space for the terminating zero, when the String-Value
in the Registry is empty (fixes bug #3589)
--
By By ...
... Detlef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unterminated_strings.diff
Type: text/x-patch
Size: 712 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051015/ff1afddc/unterminated_strings.diff
More information about the wine-patches
mailing list