[RESTRICT AUTOMERGE] CTS test for Android Security b/35219737
Bug: 35219737
Bug: 72460022
Test: Ran the new testcase on android-8.0.0_r11 with/without patch
Change-Id: I0318872b223aeec1cd69534c87be1492472c7ae8
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0587.m2v b/hostsidetests/securitybulletin/res/cve_2017_0587.m2v
new file mode 100644
index 0000000..d4c9eb0
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0587.m2v
Binary files differ
diff --git a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
index 9068ff4..fd3ad61 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -353,6 +353,19 @@
******************************************************************************/
/**
+ * b/35219737
+ * Vulnerability Behaviour: SIGSEGV in self
+ **/
+ @Test
+ @SecurityTest(minPatchLevel = "2017-05")
+ public void testPocCVE_2017_0587() throws Exception {
+ String inputFiles[] = {"cve_2017_0587.m2v"};
+ runMpeg2DecodeMemTest(inputFiles, "--input " + AdbUtils.TMP_PATH + inputFiles[0]
+ + " --output /dev/null " + "--num_frames -1 --chroma_format YUV_420SP_UV",
+ getDevice());
+ }
+
+ /**
* b/34093073
* Vulnerability Behaviour: SIGSEGV in self
**/