advapi32: Fix potential NULL pointer dereference in RegSetValueExA [with test] (Saturn)

Alexandre Julliard julliard at winehq.org
Thu Jan 29 04:33:54 CST 2009


Aurimas Fišeras <aurimas at gmail.com> writes:

> But what about this and similar situations?

There's no single answer, each situation is different, you have to study
the code flow to understand what can and cannot happen.

> What should I do?
> 1. change get_process_exe_module() to
> 	return LIST_ENTRY( ptr, struct process_dll, entry );
> 2. change debugger.c:160 to
> 	if (exe_module && exe_module->file &&
> 3. inspect list_head()?
> 4. ignore it?

Ignore it, the process will always have a module at that point.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list