diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 20:51:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 21:01:05 +0300 |
commit | 2ceff8bd63252924a2ae06451af6080876ed0cb3 (patch) | |
tree | fbfb8cfd5d3f36c7e33c6c352716b5c788f3326a /extern | |
parent | a24b4e6090057479796e914bc603119b12f6ca06 (diff) |
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.
Diffstat (limited to 'extern')
0 files changed, 0 insertions, 0 deletions