[FFmpeg-devel] [PATCH 5/9] avformat/fitsenc: validate input pixel format

Timo Rothenpieler timo at rothenpieler.org
Wed Nov 8 20:17:49 EET 2017


Fixes CID #1416961 and #1416962
---
 libavformat/fitsenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c
index 7cb171596c..91411f2606 100644
--- a/libavformat/fitsenc.c
+++ b/libavformat/fitsenc.c
@@ -106,6 +106,8 @@ static int write_image_header(AVFormatContext *s)
             }
             bzero = 32768;
             break;
+        default:
+            return AVERROR(EINVAL);
     }
 
     if (fitsctx->first_image) {
-- 
2.14.2



More information about the ffmpeg-devel mailing list