mpv/osdep
der richter e42a8d537f mac/log: fix use after free when freeing mpv handle
the mp_log is freed when the corresponding mpv_handle (ta_parent) is
freed in the EventHelper, though it could still be used from different
threads. instead don't use a ta_parent and manually free on manual
dereferencing. on app shutdown (memory cleanup) this is not called but
instead is freed by the usual cleanup and freeing.

the LogHelper is only able to be manually dereferenced in the AppHub,
so no race conditions are possible in all other cases (vo).in the AppHub
it's impossible to hit a race condition atm, because of how the init
process works and how/where the log is used. only manually forcing
logging in the exit process itself could theoretically trigger a use
after free.

Fixes #13823
2024-04-12 23:23:16 +02:00
..
android
mac mac/log: fix use after free when freeing mpv handle 2024-04-12 23:23:16 +02:00
compiler.h
endian.h
getpid.h
glob-win.c
io.c win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
io.h win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
language-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
language-posix.c
language-win.c
main-fn-mac.c mac/app: cleanup and optimise App launch and termination 2024-04-01 22:13:39 +02:00
main-fn-unix.c
main-fn-win.c osdep/main-fn-win: fix implicit conversion warning 2024-03-19 08:58:18 +01:00
main-fn.h
mpv.exe.manifest
mpv.rc
path-darwin.c
path-mac.m osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
path-unix.c
path-uwp.c
path-win.c
path.h osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
poll_wrapper.c
poll_wrapper.h
semaphore-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
semaphore.h various: make mentions of macOS consistent 2024-02-21 20:46:53 +01:00
strnlen.h
subprocess-dummy.c
subprocess-posix.c osdep: fix infinite loop when cancelling subprocess 2024-02-11 14:13:22 +01:00
subprocess-win.c
subprocess.c
subprocess.h
terminal-dummy.c win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
terminal-unix.c
terminal-win.c win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
terminal.h win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
threads-posix.c
threads-posix.h osdep/threads: fix warning: initializer element is not constant 2024-03-19 08:58:18 +01:00
threads-win32.h win32: increase hires timer resolution 2024-03-19 20:23:25 +01:00
threads.h
timer-darwin.c mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
timer-linux.c
timer-win32.c win32: increase hires timer resolution 2024-03-19 20:23:25 +01:00
timer.c mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
timer.h mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
utils-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
utils-mac.h osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
w32_keyboard.c
w32_keyboard.h
win32-console-wrapper.c win32-console-wrapper: fix printf specifiers 2024-03-19 19:56:25 +01:00
windows_utils.c win32: implement shell link target resolving 2024-03-19 11:34:00 +01:00
windows_utils.h win32: implement shell link target resolving 2024-03-19 11:34:00 +01:00