From 4641ae352ec587355764ffd5c43dd0d0ebd47654 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 24 Oct 2014 19:23:23 +0200 Subject: avformat: Add and use ff_copy_whitelists() Fixes potential security issue in case of running out of memory Found-by: ubitux Signed-off-by: Michael Niedermayer --- libavformat/internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index f254e4c016..28c29b0f4e 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -412,5 +412,9 @@ enum AVWriteUncodedFrameFlags { }; +/** + * Copies the whilelists from one context to the other + */ +int ff_copy_whitelists(AVFormatContext *dst, AVFormatContext *src); #endif /* AVFORMAT_INTERNAL_H */ -- cgit v1.2.3