Description
On Windows if FileObject->SectionObjectPointer is NULL ZwCreateSection returns STATUS_INVALID_FILE_FOR_SECTION whereas on ROS it crashes at e:\drivers\reactos\ntoskrnl\cc\copy.c on the following line:
Bcb = FileObject->SectionObjectPointer->SharedCacheMap;
This clearly happens because SectionObjectPointer is passed without its existence being checked.
Attachments
Issue Links
- blocks
-
ROSTESTS-108 FileObject->SectionObjectPointer test in kmtest:ZwCreateSection skipped
- Resolved
- relates to
-
ROSTESTS-105 ZwCreateSection/Zw(Map|Unmap)ViewOfSection/ZwAllocateVirtualMemory/ZwFreeVirtualMemory tests
- Resolved