Blender Git Commit Log

Git Commits -> Revision 2ceff8b

Revision 2ceff8b by Campbell Barton (master)
June 17, 2018, 18:01 (GMT)
Python: Allow untrusted py-drivers to run limited expressions

Limit to a restricted set of built-ins, as well as the math module.
Also restrict of op-codes, disallowing imports and attribute access.

This allows most math expressions to run
without any performance cost once the initial check is done.

See: D1862 for details.

Commit Details:

Full Hash: 2ceff8bd63252924a2ae06451af6080876ed0cb3
Parent Commit: a24b4e6
Lines Changed: +213, -1

2 Modified Paths:

/source/blender/editors/space_graph/graph_buttons.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_driver.c (+212, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021