[Webkit-unassigned] [Bug 143512] New: Accept-Ranges parsing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 7 21:54:24 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=143512
Bug ID: 143512
Summary: Accept-Ranges parsing
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mnot at mnot.net
In /WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp StreamingClient::handleResponseReceived(), the HTTP Accept-Ranges header is parsed like this:
"""
priv->seekable = length > 0 && g_ascii_strcasecmp("none", response.httpHeaderField(HTTPHeaderName::AcceptRanges).utf8().data()
"""
This means that if the string "none" shows up in the header at all, it will match -- making it error-prone if a range using that sequence of characters is ever defined.
The syntax isn't difficult to parse, it's a comma-separated list of tokens with optional whitespace (the same as several other headers):
http://httpwg.github.io/specs/rfc7233.html#header.accept-ranges
(found by Rodger Combs on the IETF HTTP WG mailing list)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150408/5b01b0a7/attachment.html>
More information about the webkit-unassigned
mailing list