Fix buffer size mismatch in SCRIPT_OT_python_file_run
Reading paths over 512 bytes would cause a buffer overrun.
This commit is contained in:
parent
7dd982a9b8
commit
0367ce4b19
Notes:
blender-bot
2023-02-13 22:19:21 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue