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

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

commit 2bf9f7b6e3bf1f6960627b6cc52b6369108c0c45
Author:     Steven Liu <[email protected]>
AuthorDate: Tue Jun 16 21:42:13 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Aug 2 06:03:04 2026 +0200

    avformat/dashdec: check NULL pointer before use str_end_offset
    
    fix issue: issues/23057 POC2
    
    Signed-off-by: Steven Liu <[email protected]>
    (cherry picked from commit 5e0ca682a43f3c3d2b443c0d86d6a3d4d6ad4dd7)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/dashdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 348222dac4..3dad770d54 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -600,7 +600,7 @@ static struct fragment *get_fragment(AVFormatContext *s, 
char *range)
     if (range) {
         char *str_end_offset;
         char *str_offset = av_strtok(range, "-", &str_end_offset);
-        if (!str_offset) {
+        if (!str_offset || !str_end_offset) {
             av_log(s, AV_LOG_WARNING, "%s will get invalid range\n", range);
             av_freep(&seg);
             return NULL;

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

Reply via email to