From 7c254bbe6430cc5533b44c750c567c9a5febe47e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 16 Oct 2015 16:35:41 +0200 Subject: [PATCH] smbd: Fix file name buflen in notify repsonse The array is uint16, doubling the file name length consumes twice the space required. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10634 Signed-off-by: Volker Lendecke --- librpc/idl/notify.idl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librpc/idl/notify.idl b/librpc/idl/notify.idl index 66422ec..c363776 100644 --- a/librpc/idl/notify.idl +++ b/librpc/idl/notify.idl @@ -93,6 +93,7 @@ interface notify uint32 NextEntryOffset; FILE_NOTIFY_ACTION Action; [value(strlen_m(FileName1)*2)] uint32 FileNameLength; - [charset(UTF16),flag(STR_NOTERM)] uint16 FileName1[FileNameLength]; + [charset(UTF16),flag(STR_NOTERM)] + uint16 FileName1[strlen_m(FileName1)]; } FILE_NOTIFY_INFORMATION; } -- 1.9.1