diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-09-16 10:46:28 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-09-16 10:46:28 +0300 |
commit | 8c87e681a500b54cc927220b5791ca5db4b8de48 (patch) | |
tree | 0ceb69d4bec15f70238929598e71720a36d1c241 /source/blender/python | |
parent | db0c37f2f712a1522938a3e257c1608c972b85d2 (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')
-rw-r--r-- | source/blender/python/intern/bpy_driver.c | 2 |
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 *[]){ |