In a number of places VirtualQuery is used to analyze memory mappings, but the result is not checked correctly.
Sometimes error handling is missing completely. Sometimes the caller does not check for the "MEM_FREE" State and accesses memory of MEMORY_INFORMATION_BASIC whose content is undefined.
Sometimes error handling is missing completely. Sometimes the caller does not check for the "MEM_FREE" State and accesses memory of MEMORY_INFORMATION_BASIC whose content is undefined.