Skip to content

Commit 4aa47ac

Browse files
committed
Output: gop based segments buffer overflow
1 parent ae63d4b commit 4aa47ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/output/gop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void GOPOutput::setParam(x265_param *p_param)
6969
p_param->bRepeatHeaders = false;
7070
i_numframe = 0;
7171

72-
int len = strlen(filename_prefix) + 20;
72+
int len = strlen(dir_prefix) + strlen(filename_prefix) + 20;
7373
char opt_filename[len];
7474
sprintf(opt_filename, "%s%s.options", dir_prefix, filename_prefix);
7575
FILE* opt_file = fopen(opt_filename, "wb");

0 commit comments

Comments
 (0)