Add test for primary chromaticity parse failures.

Specifically for failures due to field size being too large.

BUG=webm:1381

Change-Id: Ia8633cab96d10ab485de1ab796a643e3c26a9923
diff --git a/testing/mkvparser_tests.cc b/testing/mkvparser_tests.cc
index d3ce87a..47858d1 100644
--- a/testing/mkvparser_tests.cc
+++ b/testing/mkvparser_tests.cc
@@ -803,6 +803,12 @@
             segment_->GetFirst()->GetNext(block_entry, block_entry));
 }
 
+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
--- /dev/null
+++ b/testing/testdata/invalid/primarychromaticity_fieldtoolarge.webm
@@ -0,0 +1 @@
+EߣŸB00B00B00B00B‚„webmB00B00S€g0000000»‹00000000000»Œ000000000000ì¼000000000000000000000000000000000000000000000000000000000000€“0000000000000000000W0“0000000000000000000T®k@ž®@›×0s00ƒ†…00000à@‡°‚00º0U°ýU¸0U¹0Uº0U»0U¼0U½0UÐÆUل0000Uڄ0000Uф0000UÒ000000000000000000000000000000000000000000000000000000000000000000000000000
\ No newline at end of file