mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
fftools: do not access out of bounds filtergraph
The log message was logged for `filtergraphs[j]` which would cause a heap buffer overflow in certain circumstances. Correctly it should be logged for the current filtergraph, so just use `fg` here. (cherry picked from commit 5beeb3a1f97d8f6d4076fe83aaf5e2e5871f945e)
This commit is contained in:
parent
4c0ef3bfae
commit
e14a3a4b11
@ -1408,7 +1408,7 @@ int fg_finalise_bindings(void)
|
||||
for (int j = 0; j < fg->nb_outputs; j++) {
|
||||
OutputFilter *output = fg->outputs[j];
|
||||
if (!output->bound) {
|
||||
av_log(filtergraphs[j], AV_LOG_FATAL,
|
||||
av_log(fg, AV_LOG_FATAL,
|
||||
"Filter %s has an unconnected output\n", output->name);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user