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

Git pushed a commit to branch master
in repository ffmpeg.

commit 2e52c71caa0e5bbd6e0d618728e4f09b271c6dfb
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 22 20:57:46 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Sep 23 00:47:59 2026 +0000

    avformat/http: trim trailing whitespace from cookie attribute names
    
    RFC 6265 section 5.2 trims whitespace around the attribute name before
    it is matched
---
 libavformat/http.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 81b3e34898..dac46d2991 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1092,6 +1092,9 @@ static int parse_set_cookie(const char *set_cookie, 
AVDictionary **dict)
         next_param = NULL;
         param += strspn(param, WHITESPACES);
         if ((name = av_strtok(param, "=", &value))) {
+            char *end = name + strlen(name);
+            while (end > name && strchr(WHITESPACES, end[-1]))
+                *--end = '\0';
             if (av_dict_set(dict, name, value ? value : "", 0) < 0) {
                 av_free(cstr);
                 return -1;

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