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

Git pushed a commit to branch release/6.1
in repository ffmpeg.

commit 852b178240e7a857a7ffefc4a3c625973518b1d4
Author:     Reimar Döffinger <[email protected]>
AuthorDate: Tue Mar 12 23:06:49 2024 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Jun 20 17:42:28 2026 +0200

    avcodec/parser: Reset *buf_size on realloc failure
    
    Fixes: out of array access
    Fixes: crash-0d640731c7da52415670eb47a2af701cbe2e1a3b
    Fixes: crash-e745864ead6ea418959c8df56de2765571201dae
    
    Found-by: Catena cyber <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 605fc72f19ed975df6b36ea13d9f63b1fe9c852a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/parser.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index fea8d7a4c5..426cc314fb 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -253,6 +253,7 @@ int ff_combine_frame(ParseContext *pc, int next,
                                            AV_INPUT_BUFFER_PADDING_SIZE);
         if (!new_buffer) {
             av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to 
%d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE);
+            *buf_size =
             pc->overread_index =
             pc->index = 0;
             return AVERROR(ENOMEM);

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

Reply via email to