Infinite loop in get_module_by_name
davemcincork opened this issue · comments
Line 83 in 05c7149
if curr_module->BaseAddress
is non-null and curr_module->BaseDllName.Buffer
is null, the while loop goes infinite. Reason is that the advance to the next list item is skipped on continue. Suggest turning the while
loop into a for
loop, i.e.
for (
PLDR_DATA_TABLE_ENTRY curr_module = Flink;
curr_module && curr_module->BaseAddress;
curr_module = (PLDR_DATA_TABLE_ENTRY)curr_module->InLoadOrderModuleList.Flink) {
Thank you, fixed!