Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2020 17:42:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 244123] libfetch: memory leak when processing multiple HTTP location response headers
Message-ID:  <bug-244123-227-hzRw8XaZ07@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244123-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244123-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244123

--- Comment #2 from Conrad Meyer <cem@freebsd.org> ---
Your fix looks correct to me.

Technically this is a non-compliant server, right?  IIRC, modern HTTP does not
allow duplicate instances of headers.  So it would also be valid for libfetch
to just reject the connection when encountering the second Location.  No?

This case is only encountered when one HTTP response contains two location
headers and not by, e.g., 302 / Location: foo => 302 / Location: bar => ...

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244123-227-hzRw8XaZ07>