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:
authorRichard Antalik <richardantalik@gmail.com>2021-12-20 04:15:23 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-12-20 04:18:59 +0300
commit0b697934878e049b1690fe135570c9fd72c4332e (patch)
tree166c78bedd9cf0b0a14c6cf6b38b6742410a7bdc
parent34fac7a6703644f3306a5f8508b00e6f78a105bb (diff)
Fix T94254: Crash using view_all operator in VSE
Caused by `NULL` dereference in `SEQ_meta_stack_active_get()`. Check if `Editing` is `NULL` before accessing meta stack.
-rw-r--r--source/blender/sequencer/intern/sequencer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/sequencer/intern/sequencer.c b/source/blender/sequencer/intern/sequencer.c
index e457b878be6..e4120a3cf95 100644
--- a/source/blender/sequencer/intern/sequencer.c
+++ b/source/blender/sequencer/intern/sequencer.c
@@ -419,6 +419,10 @@ void SEQ_meta_stack_free(Editing *ed, MetaStack *ms)
MetaStack *SEQ_meta_stack_active_get(const Editing *ed)
{
+ if (ed == NULL) {
+ return NULL;
+ }
+
return ed->metastack.last;
}