···1902190219031903 /* Find the memory area the specified address belongs to */
19041904 MemoryArea = MmLocateMemoryAreaByAddress(&TargetProcess->Vm, BaseAddress);
19051905- ASSERT(MemoryArea != NULL);
1906190519071906 /* Determine information dependent on the memory area type */
19081908- if (MemoryArea->Type == MEMORY_AREA_SECTION_VIEW)
19071907+ if (MemoryArea && MemoryArea->Type == MEMORY_AREA_SECTION_VIEW)
19091908 {
19101909 Status = MmQuerySectionView(MemoryArea, BaseAddress, &MemoryInfo, &ResultLength);
19111910 if (!NT_SUCCESS(Status))
···49144913 // Make sure this is an ARM3 section
49154914 //
49164915 MemoryArea = MmLocateMemoryAreaByAddress(AddressSpace, (PVOID)PAGE_ROUND_DOWN(PBaseAddress));
49174917- ASSERT(MemoryArea != NULL);
49184918- if (MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3)
49164916+ if (MemoryArea && MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3)
49194917 {
49204918 DPRINT1("Illegal commit of non-ARM3 section!\n");
49214919 Status = STATUS_ALREADY_COMMITTED;