diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-04-30 19:01:47 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-04-30 19:01:47 +0300 |
commit | aadfa31cf000f74f6b16f311c1532e2c6c1a384b (patch) | |
tree | feebf8a9fbeeb983b4642e6f6bdde4b71da5dc80 /intern/clog/CLG_log.h | |
parent | 99eca899c0926674a48dc43c913fac18770412eb (diff) |
Fix "use after free" issue in clog
Keep track of clog_refs so we can null the pointers when calling
CLG_exit. Otherwise we will run into issues where the code will try to
access freed data.
Diffstat (limited to 'intern/clog/CLG_log.h')
-rw-r--r-- | intern/clog/CLG_log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/clog/CLG_log.h b/intern/clog/CLG_log.h index 3e51e228bac..8a26eb035cf 100644 --- a/intern/clog/CLG_log.h +++ b/intern/clog/CLG_log.h @@ -118,6 +118,7 @@ typedef struct CLG_LogType { typedef struct CLG_LogRef { const char *identifier; CLG_LogType *type; + struct CLG_LogRef *next; } CLG_LogRef; void CLG_log_str(CLG_LogType *lg, |