mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:45:44 +00:00
[FILESYSTEMS] Fix pool memory disclosure in filesystem drivers supporting FS_INFORMATION_CLASS.FileFsVolumeInformation (#2975)
* FileFsVolumeInformation-memory-disclosure * remove unnecessary assignment to 0 * fix
This commit is contained in:
parent
ede7a20a17
commit
166f815e7b
5 changed files with 15 additions and 7 deletions
|
@ -4546,6 +4546,10 @@ NTSTATUS nfs41_QueryVolumeInformation(
|
|||
status = check_nfs41_dirquery_args(RxContext);
|
||||
if (status) goto out;
|
||||
|
||||
#ifdef __REACTOS__
|
||||
RtlZeroMemory(RxContext->Info.Buffer, RxContext->Info.LengthRemaining);
|
||||
#endif // __REACTOS__
|
||||
|
||||
switch (InfoClass) {
|
||||
case FileFsVolumeInformation:
|
||||
if ((ULONG)RxContext->Info.LengthRemaining >= DevExt->VolAttrsLen) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue