Skip to content

Commit 919f290

Browse files
authored
Signature for WebM will always return false
Correct inverted test logic to determine if we've reached the end of the EBML element. Fixes #185.
1 parent 975191b commit 919f290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mimesniff.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ algorithm</dfn>:
12651265
<li> Let <var>number size</var> be the result
12661266
of <a href=#parse-a-vint>parsing a <code>vint</code></a> starting at <var>sequence</var>[<var>iter</var>].
12671267
<li> Increment <var>iter</var> by <var>number size</var>.
1268-
<li> If <var>iter</var> is less than <var>length</var> - 4, abort these
1268+
<li> If <var>iter</var> is equal or greater than <var>length</var> - 4, abort these
12691269
steps.
12701270
<li> Let <var>matched</var> be the result of <a href=#matching-a-padded-sequence>matching a padded
12711271
sequence</a> 0x77 0x65 0x62 0x6D

0 commit comments

Comments
 (0)