diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-24 07:52:02 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-09-06 10:28:46 +0300 |
commit | 515bdda3d9c7938becdf4a761af47087244532de (patch) | |
tree | 932f7e86042a6249706c107b93c9c4ecd4771a1c | |
parent | 74ba0f8bd84b743c6957e68fa3da45fc6c243520 (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 50cfa2e71c7..0a8700f8180 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_run_filepath(C, path, op->reports)) { |