[FFmpeg-devel] [PATCH 1/1] Add null check for the frame pointer

2018-06-25 Thread Baozeng Ding
Signed-off-by: Baozeng Ding The argument `frame` for avcodec_receive_frame function is user controlled. If a null pointer is passed from the user, it will cause a segmentation fault. --- libavcodec/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/decode.c b/libavcodec

[FFmpeg-devel] [PATCH 1/1] Add null check for the frame pointer

2018-06-25 Thread Baozeng Ding
Signed-off-by: Baozeng Ding The argument `frame` for avcodec_receive_frame function is user controlled. If a null pointer is passed from the user, it will cause a segmentation fault. --- libavcodec/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/decode.c b/libavcodec

[FFmpeg-devel] [PATCH] Fix heap buffer overflow in ff_combine_frame

2018-06-26 Thread Baozeng Ding
Signed-off-by: Baozeng Ding --- libavcodec/parser.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/parser.c b/libavcodec/parser.c index f43b197..a9786af 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -355,6 +355,7 @@ int ff_combine_frame