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 a9984fec81 avcodec/lcevc_parser: check return value of init_get_bits8()
a9984fec81 is described below
commit a9984fec81f8df03e18538278a8e734881b5090f
Author: James Almer <[email protected]>
AuthorDate: Tue Mar 10 15:50:20 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Tue Mar 10 15:50:20 2026 -0300
avcodec/lcevc_parser: check return value of init_get_bits8()
Fixes coverity issue CID 1684198.
Signed-off-by: James Almer <[email protected]>
---
libavcodec/lcevc_parser.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/lcevc_parser.c b/libavcodec/lcevc_parser.c
index f3338c4659..1de44a8bda 100644
--- a/libavcodec/lcevc_parser.c
+++ b/libavcodec/lcevc_parser.c
@@ -114,7 +114,9 @@ static int parse_nal_unit(AVCodecParserContext *s,
AVCodecContext *avctx,
int payload_size_type, payload_type;
int block_size;
- init_get_bits8(&gb, gbc.buffer, bytestream2_get_bytes_left(&gbc));
+ int ret = init_get_bits8(&gb, gbc.buffer,
bytestream2_get_bytes_left(&gbc));
+ if (ret < 0)
+ return ret;
payload_size_type = get_bits(&gb, 3);
payload_type = get_bits(&gb, 5);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]