diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-24 07:52:02 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-08-30 12:25:16 +0300 |
commit | 0367ce4b19d4dfc9823bbcc1a783d1faf63c7a92 (patch) | |
tree | 0aba1a9ce7616a8cfbc1cec6792010a821d90e25 | |
parent | 7dd982a9b8975fdab72587b5f06094f19bdea205 (diff) |
Fix buffer size mismatch in SCRIPT_OT_python_file_run
Reading paths over 512 bytes would cause a buffer overrun.
-rw-r--r-- | source/blender/editors/space_script/script_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c index e9ed1cec228..832139a913d 100644 --- a/source/blender/editors/space_script/script_edit.c +++ b/source/blender/editors/space_script/script_edit.c @@ -47,7 +47,7 @@ static int run_pyfile_exec(bContext *C, wmOperator *op) { - char path[512]; + char path[FILE_MAX]; RNA_string_get(op->ptr, "filepath", path); #ifdef WITH_PYTHON if (BPY_execute_filepath(C, path, op->reports)) { |