This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html Multipage: http://www.whatwg.org/C#parsing-0 Complete: http://www.whatwg.org/c#parsing-0 Comment: WebVTT cue discarded and then used (SIGSEGV) Posted from: 83.218.67.122 by philipj@opera.com User agent: Opera/9.80 (X11; Linux x86_64; U; Edition Next; en) Presto/2.9.186 Version/12.00
*** Bug 14179 has been marked as a duplicate of this bug. ***
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#webvtt-parser-algorithm In step 42 and 44, the cue is discarded and there is a jump to step 51, where cue is used. When implemented naively, this is a segfault. The solution is to drop "discard cue and" from steps 42 and 44. This means that empty cues will be allowed, which is IMO the sane behavior. (Dropping an entire cue because it wasn't ended with a newline is not.)
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diff given below Rationale: Yeah that didn't make any sense. Empty cues aren't supposed to be discarded. Not sure what I was doing here. Probably forgot to do some fix-ups after some copy-and-paste...
Checked in as WHATWG revision r6556. Check-in comment: Avoid discarding the last cue in a file if it's empty, or any empty cue that is only terminated with CR and not CRLF. Also, explicitly allow empty metadata cues. http://html5.org/tools/web-apps-tracker?from=6555&to=6556