Description
Ftr, the 2 previous blocks use ULONG64.
This 3rd block is warned.
2892 /* Check if the caller did not specify a view size */ |
2893 if (!(*ViewSize)) |
2894 {
|
2895 /* Compute it for the caller */ |
2896 *ViewSize = (SIZE_T)(Section->SizeOfSection.QuadPart - SectionOffset->QuadPart); |
2897
|
2898 /* Check if it's larger than 4GB or overflows into kernel-mode */ |
2899 if ((*ViewSize > 0xFFFFFFFF) || |
2900 (((ULONG_PTR)MM_HIGHEST_VAD_ADDRESS - (ULONG_PTR)*BaseAddress) < *ViewSize)) |
2901 {
|
2902 DPRINT1("Section view won't fit\n"); |
2903 return STATUS_INVALID_VIEW_SIZE; |
2904 }
|
2905 }
|
It feels like this block too should use ULONG64.
This code was added as is in r48997 by "sir_richard".