This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 04df80f973 avcodec/cavs_parser: check return value of init_get_bits8
04df80f973 is described below

commit 04df80f973b94f42209932c8f6be8b705819156c
Author:     James Almer <[email protected]>
AuthorDate: Thu Dec 11 20:01:01 2025 -0300
Commit:     James Almer <[email protected]>
CommitDate: Thu Dec 11 20:01:01 2025 -0300

    avcodec/cavs_parser: check return value of init_get_bits8
    
    Fixes Coverity issue CID 1676035
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/cavs_parser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cavs_parser.c b/libavcodec/cavs_parser.c
index 882840cd7f..8dccc0923a 100644
--- a/libavcodec/cavs_parser.c
+++ b/libavcodec/cavs_parser.c
@@ -142,7 +142,8 @@ static int cavs_parse_frame(AVCodecParserContext *s, 
AVCodecContext *avctx,
             return 0;
         switch (stc) {
         case CAVS_START_CODE:
-            init_get_bits8(&gb, buf_ptr, buf_end - buf_ptr);
+            if (init_get_bits8(&gb, buf_ptr, buf_end - buf_ptr) < 0)
+                return 0;
             parse_seq_header(s, avctx, &gb);
             break;
         case PIC_I_START_CODE:

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to