Alexandre Julliard pushed to branch master at wine / wine
Commits: a4fbcc45 by Yuxuan Shui at 2025-10-15T11:39:08+02:00 windows.devices.enumeration: Fix use-after-realloc in devpropcompkeys_append_names.
- - - - - 6bf9d368 by Yuxuan Shui at 2025-10-15T11:39:10+02:00 windows.devices.enumeration: Don't leave dangling pointers if devpropcompkeys_append_names fails.
If devpropcompkeys_append_names fails after the realloc, *ret_keys will contain a dangling pointer. But both of its callers assume it's safe to call free on *ret_keys when devpropcompkeys_append_names fails, resulting in double freeing.
- - - - -
1 changed file:
- dlls/windows.devices.enumeration/main.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/6bb444a3c82d0f5e9ff3190352e630...