diff --git a/testing/mkvparser_tests.cc b/testing/mkvparser_tests.cc index d3ce87a..9c26a1e 100644 --- a/testing/mkvparser_tests.cc +++ b/testing/mkvparser_tests.cc @@ -803,6 +803,18 @@ TEST_F(ParserTest, InvalidBlockGroupBlockEndsBlockGroup) { segment_->GetFirst()->GetNext(block_entry, block_entry)); } +TEST_F(ParserTest, InvalidProjectionFloatOverflow) { + ASSERT_NO_FATAL_FAILURE( + CreateSegmentNoHeaderChecks("invalid/projection_float_overflow.webm")); + EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load()); +} + +TEST_F(ParserTest, InvalidPrimaryChromaticityParseFail) { + ASSERT_NO_FATAL_FAILURE(CreateSegmentNoHeaderChecks( + "invalid/primarychromaticity_fieldtoolarge.webm")); + EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load()); +} + } // namespace test int main(int argc, char* argv[]) { diff --git a/testing/testdata/invalid/primarychromaticity_fieldtoolarge.webm b/testing/testdata/invalid/primarychromaticity_fieldtoolarge.webm new file mode 100644 index 0000000..c432425 Binary files /dev/null and b/testing/testdata/invalid/primarychromaticity_fieldtoolarge.webm differ diff --git a/testing/testdata/invalid/projection_float_overflow.webm b/testing/testdata/invalid/projection_float_overflow.webm new file mode 100644 index 0000000..46f6208 Binary files /dev/null and b/testing/testdata/invalid/projection_float_overflow.webm differ