Merge changes I7e467d31,Ia8633cab

* changes:
  Add test for projection parse failures.
  Add test for primary chromaticity parse failures.
This commit is contained in:
Tom Finegan 2017-04-28 22:42:03 +00:00 committed by Gerrit Code Review
commit a65b9e0287
3 changed files with 13 additions and 0 deletions

View File

@ -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[]) {

View File

@ -0,0 +1 @@
EߣŸB0<42>0B0<42>0B0<42>0B0<42>0B„webmB0<42>0B0<42>0S€g0000000»00000000000»Œ000000000000ì¼000000000000000000000000000000000000000000000000000000000000€“0000000000000000000W0“0000000000000000000T®k@ž®@×<E280BA>0s0<73><30>†…00000à@‡°00º<30>0U°ýU¸<55>0U¹<55>0Uº<55>0U»<55>0U¼<55>0U½<55>0UÐÆUÙ„0000UÚ„0000UÑ„0000UÒ000000000000000000000000000000000000000000000000000000000000000000000000000

Binary file not shown.