Improve RtlImageNtHeaderEx:
- Fix signed/unsigned mismatch when comparing NT header offset
- Simplify overflow checks
- Add missing overflow-into-systemspace check
CR-77 / CORE-8091 #resolve

svn path=/trunk/; revision=67140
This commit is contained in:
Timo Kreuzer
2015-04-10 19:21:22 +00:00
parent 2e5a937eee
commit e617f69eee
8 changed files with 69 additions and 42 deletions
@@ -20,6 +20,8 @@
#include <freeldr.h>
PVOID MmHighestUserAddress = (PVOID)MI_HIGHEST_USER_ADDRESS;
#if DBG
VOID FASTCALL
CHECK_PAGED_CODE_RTL(char *file, int line)