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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-09-16 10:46:28 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-09-16 10:46:28 +0300
commit8c87e681a500b54cc927220b5791ca5db4b8de48 (patch)
tree0ceb69d4bec15f70238929598e71720a36d1c241 /source/blender/python/intern/bpy_driver.c
parentdb0c37f2f712a1522938a3e257c1608c972b85d2 (diff)
Fix driver expression bytecode validation crash if parsing fails.
Another NULL pointer access: nothing to validate if it already failed.
Diffstat (limited to 'source/blender/python/intern/bpy_driver.c')
-rw-r--r--source/blender/python/intern/bpy_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c
index f1f034c8465..f098a28d679 100644
--- a/source/blender/python/intern/bpy_driver.c
+++ b/source/blender/python/intern/bpy_driver.c
@@ -549,7 +549,7 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna, ChannelDriver *driver, C
}
#ifdef USE_BYTECODE_WHITELIST
- if (is_recompile) {
+ if (is_recompile && expr_code) {
if (!(G.f & G_SCRIPT_AUTOEXEC)) {
if (!bpy_driver_secure_bytecode_validate(
expr_code, (PyObject *[]){