mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Ogg has a 5-byte signature, but pattern did not include NUL
This commit is contained in:
parent
54b07bae91
commit
ab43e2b028
1 changed files with 2 additions and 2 deletions
|
@ -741,8 +741,8 @@ impl ByteMatcher {
|
||||||
//The string "OggS" followed by NUL, the Ogg container signature.
|
//The string "OggS" followed by NUL, the Ogg container signature.
|
||||||
fn application_ogg() -> ByteMatcher {
|
fn application_ogg() -> ByteMatcher {
|
||||||
ByteMatcher {
|
ByteMatcher {
|
||||||
pattern: b"OggS",
|
pattern: b"OggS\x00",
|
||||||
mask: b"\xFF\xFF\xFF\xFF",
|
mask: b"\xFF\xFF\xFF\xFF\xFF",
|
||||||
content_type: ("application", "ogg"),
|
content_type: ("application", "ogg"),
|
||||||
leading_ignore: &[]
|
leading_ignore: &[]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue