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 f8c4c6400e avcodec/hap: do not hide the failure of the chunk table
allocation
f8c4c6400e is described below
commit f8c4c6400e835bf65e8b9cc12aba9e5c4d1c818c
Author: Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 03:24:11 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Wed Sep 16 21:12:04 2026 +0000
avcodec/hap: do not hide the failure of the chunk table allocation
Fixes: XEbMheG4aNCP
Fixes: NULL pointer dereference
Found-by: Zheng Yu @ Depthfirst
---
libavcodec/hap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hap.c b/libavcodec/hap.c
index ac4032ce11..26b071da68 100644
--- a/libavcodec/hap.c
+++ b/libavcodec/hap.c
@@ -30,7 +30,7 @@ int ff_hap_set_chunk_count(HapContext *ctx, int count, int
first_in_frame)
{
int ret = 0;
if (first_in_frame == 1 && ctx->chunk_count != count) {
- int ret = av_reallocp_array(&ctx->chunks, count, sizeof(HapChunk));
+ ret = av_reallocp_array(&ctx->chunks, count, sizeof(HapChunk));
if (ret == 0)
ret = av_reallocp_array(&ctx->chunk_results, count, sizeof(int));
if (ret < 0) {
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]