git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
219d8c9
)
idl: add to_null attribute to the spoolss devicename array
author
David Disseldorp
<ddiss@samba.org>
Wed, 23 Nov 2011 01:03:48 +0000
(
02:03
+0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 16 Jan 2012 19:47:42 +0000
(20:47 +0100)
OpenPrinterEx requests have also been observed in the wild carrying
non-utf16 garbage after the device mode devicename field null
terminator.
Signed-off-by: Jeremy Allison <jra@samba.org>
librpc/idl/spoolss.idl
patch
|
blob
|
history
diff --git
a/librpc/idl/spoolss.idl
b/librpc/idl/spoolss.idl
index 4b1f94f4a353b6dfd894ecec210b7975070c4c0b..d888a79ecba9c1ff90db59b1b0519dda8156584f 100644
(file)
--- a/
librpc/idl/spoolss.idl
+++ b/
librpc/idl/spoolss.idl
@@
-678,7
+678,7
@@
cpp_quote("#define spoolss_security_descriptor security_descriptor")
const int MAXDEVICENAME = 32;
typedef [public,gensize] struct {
- [charset(UTF16)] uint16 devicename[MAXDEVICENAME];
+ [charset(UTF16)
,to_null
] uint16 devicename[MAXDEVICENAME];
spoolss_DeviceModeSpecVersion specversion;
uint16 driverversion;
uint16 size;