Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2021-04-30 19:01:47 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-04-30 19:01:47 +0300
commitaadfa31cf000f74f6b16f311c1532e2c6c1a384b (patch)
treefeebf8a9fbeeb983b4642e6f6bdde4b71da5dc80 /intern/clog/CLG_log.h
parent99eca899c0926674a48dc43c913fac18770412eb (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.h1
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,