[driver] check for nul reparse point buffer
This commit is contained in:
parent
b4a1af0df6
commit
e934484b1f
1 changed files with 5 additions and 0 deletions
|
|
@ -5727,6 +5727,11 @@ NTSTATUS nfs41_SetReparsePoint(
|
|||
print_reparse_buffer(Reparse);
|
||||
#endif
|
||||
|
||||
if (!Reparse) {
|
||||
status = STATUS_INVALID_PARAMETER;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (Reparse->ReparseTag != IO_REPARSE_TAG_SYMLINK) {
|
||||
status = STATUS_IO_REPARSE_TAG_MISMATCH;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue