https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3c679fc6b4abd351a443d…
commit 3c679fc6b4abd351a443d0affacd01554a96a044
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Thu Nov 2 23:03:08 2017 +0100
[RDBSS] Fix a bug in RxQueryNameInfo(): don't only return name length, but also
the whole structure. Avoids corruption
---
sdk/lib/drivers/rdbsslib/rdbss.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sdk/lib/drivers/rdbsslib/rdbss.c b/sdk/lib/drivers/rdbsslib/rdbss.c
index 46c006d0a7..15e4a2d28c 100644
--- a/sdk/lib/drivers/rdbsslib/rdbss.c
+++ b/sdk/lib/drivers/rdbsslib/rdbss.c
@@ -8155,6 +8155,8 @@ RxQueryNameInfo(
return STATUS_BUFFER_OVERFLOW;
}
+ RxContext->Info.LengthRemaining -= FIELD_OFFSET(FILE_NAME_INFORMATION, FileName);
+
Fcb = (PFCB)RxContext->pFcb;
Fobx = (PFOBX)RxContext->pFobx;
/* Get the UNC name */