<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14178</bug_id>
          
          <creation_ts>2011-09-16 09:14:41 +0000</creation_ts>
          <short_desc>&lt;track&gt; WebVTT cue discarded and then used (SIGSEGV)</short_desc>
          <delta_ts>2012-07-18 18:39:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#parsing-0</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56889</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-16 09:14:41 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56892</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-09-16 09:17:12 +0000</bug_when>
    <thetext>*** Bug 14179 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56897</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-09-16 11:45:12 +0000</bug_when>
    <thetext>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 &quot;discard cue and&quot; 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&apos;t ended with a newline is not.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57013</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-19 23:14:55 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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&apos;t make any sense. Empty cues aren&apos;t supposed to be discarded. Not sure what I was doing here. Probably forgot to do some fix-ups after some copy-and-paste...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57014</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-19 23:15:35 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6556.
Check-in comment: Avoid discarding the last cue in a file if it&apos;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&amp;to=6556</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>