Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-24 07:52:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-24 07:52:02 +0300
commitde60205f195b17d36c4e2fb3c3018719b5d9a1d9 (patch)
treea87d51dfe0796c92b2b717a451957865eaf9fb13
parente0a6001a221c6f38a9a61cb6a21e4e776147f99d (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.c2
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)) {