idl: add to_null attribute to the spoolss formname array
commitf83cd0ae61ae4d5939c4e0904072f2860445294e
authorDavid Disseldorp <ddiss@suse.de>
Sun, 13 Nov 2011 19:40:56 +0000 (13 20:40 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:29:58 +0000 (23 21:29 +0100)
tree94a0262cce86a9bf1b58e4c5e9e148c8750039be
parenta2fa0c0c90913a8a0b73d8785435f193f03e1e43
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>
(cherry picked from commit 219d8c916fd890ca4b4eae77abd5a651aa37e4ff)
librpc/idl/spoolss.idl