From ab43e2b028f189e28cc7baf577b427761bdffa1b Mon Sep 17 00:00:00 2001 From: Jonathan Giddy Date: Fri, 19 Feb 2016 16:51:40 +0000 Subject: [PATCH] Ogg has a 5-byte signature, but pattern did not include NUL --- components/net/mime_classifier.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/net/mime_classifier.rs b/components/net/mime_classifier.rs index 4b88850f0b4..89f4522ac19 100644 --- a/components/net/mime_classifier.rs +++ b/components/net/mime_classifier.rs @@ -741,8 +741,8 @@ impl ByteMatcher { //The string "OggS" followed by NUL, the Ogg container signature. fn application_ogg() -> ByteMatcher { ByteMatcher { - pattern: b"OggS", - mask: b"\xFF\xFF\xFF\xFF", + pattern: b"OggS\x00", + mask: b"\xFF\xFF\xFF\xFF\xFF", content_type: ("application", "ogg"), leading_ignore: &[] }