From 52aef0ba28327b44aa18abd759c8852bcd7f64ff Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Tue, 19 Mar 2024 11:05:25 +1100 Subject: [PATCH 1/2] 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) --- mimesniff.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimesniff.bs b/mimesniff.bs index 4974974..cf7a4e0 100644 --- a/mimesniff.bs +++ b/mimesniff.bs @@ -1271,7 +1271,7 @@ algorithm:
  • Let number size be the result of parsing a vint starting at sequence[iter].
  • Increment iter by number size. -
  • If iter is less than length - 4, abort these +
  • If iter is greater or equal than length - 4, abort these steps.
  • Let matched be the result of matching a padded sequence 0x77 0x65 0x62 0x6D From 42541da83a15cc9c0ed49059dc86d51d57b8db08 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 25 Mar 2024 14:17:57 +0100 Subject: [PATCH 2/2] nit --- mimesniff.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimesniff.bs b/mimesniff.bs index cf7a4e0..dff7c16 100644 --- a/mimesniff.bs +++ b/mimesniff.bs @@ -1271,7 +1271,7 @@ algorithm:
  • Let number size be the result of parsing a vint starting at sequence[iter].
  • Increment iter by number size. -
  • If iter is greater or equal than length - 4, abort these +
  • If iter is equal or greater than length - 4, abort these steps.
  • Let matched be the result of matching a padded sequence 0x77 0x65 0x62 0x6D