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

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

commit 00cf1905675d8ee02dbca828c1cbf649538b4208
Author:     Steven Liu <[email protected]>
AuthorDate: Tue Jun 16 21:42:13 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Sep 19 14:27:03 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 84c9abe7ec..32f73ba2d7 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -592,7 +592,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;

-- 
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]

Reply via email to