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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5e0ca682a43f3c3d2b443c0d86d6a3d4d6ad4dd7
Author:     Steven Liu <[email protected]>
AuthorDate: Tue Jun 16 21:42:13 2026 +0800
Commit:     stevenliu <[email protected]>
CommitDate: Tue Jul 7 18:31:35 2026 +0000

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

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 70e628df5e..8aa99d7996 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