idl: add to_null attribute to the spoolss formname array
commit0df5d0608e8aaa7dce2866d0c2cc4c27c677d98d
authorDavid Disseldorp <ddiss@suse.de>
Sun, 13 Nov 2011 19:40:56 +0000 (13 20:40 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 13 Jan 2012 17:37:37 +0000 (13 09:37 -0800)
tree073cccc73804a538291808b05e68ba61adf29658
parentee292bf5f342652b382a1926779f215f7f8bd806
idl: add to_null attribute to the spoolss formname array

OpenPrinterEx requests have been observed in the wild carrying a device
mode formname "A4" followed by non-utf16 garbage after the null
terminator. Such requests currently fail during unmarshalling in the
ndr_pull_charset() codepath, causing intermittent print job failures.

This change ensures that garbage after the device mode formname null
terminator is not processed in unmarshalling.

https://bugzilla.samba.org/show_bug.cgi?id=8606

Signed-off-by: Jeremy Allison <jra@samba.org>
librpc/idl/spoolss.idl