idl: add to_null attribute to the spoolss formname array
commit219d8c916fd890ca4b4eae77abd5a651aa37e4ff
authorDavid Disseldorp <ddiss@suse.de>
Sun, 13 Nov 2011 19:40:56 +0000 (13 20:40 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Jan 2012 19:47:41 +0000 (16 20:47 +0100)
treea82e8e5f772bc7572ef8eb7899f1f9e87f1a7f0f
parentaa8fbd5005c06dfd0b5ee2865c49eab285f57e62
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