This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lavfi/zmq: Avoid mem copy past the end of input buffer
tags/n4.3
Andriy Gelman
Carl Eugen Hoyos
5 years ago
parent
46b97c0527
commit
f60b1211b2
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavfilter/f_zmq.c
+ 1
- 1
libavfilter/f_zmq.c
View File
@@ -139,7 +139,7 @@ static int recv_msg(AVFilterContext *ctx, char **buf, int *buf_size)
ret = AVERROR(ENOMEM);
goto end;
}
memcpy(*buf, zmq_msg_data(&msg), *buf_size);
memcpy(*buf, zmq_msg_data(&msg), *buf_size
- 1
);
(*buf)[*buf_size-1] = 0;
end:
Write
Preview
Loading…
Cancel
Save