[RESTRICT AUTOMERGE] CTS test for Android Security b/34093073
Bug: 34093073
Bug: 72461369
Test: Ran the new testcase on android-8.0.0_r11 with/without patch
Change-Id: Ibfa33e5a8886ae2bd090aa344f241d8cca49bd46
(cherry picked from commit 642dadece9bee4d07107b444b66040b132f10f69)
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0557.m2v b/hostsidetests/securitybulletin/res/cve_2017_0557.m2v
new file mode 100644
index 0000000..15f8c47
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0557.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 62d1b80..825bf7b9 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -327,6 +327,19 @@
******************************************************************************/
/**
+ * b/34093073
+ * Vulnerability Behaviour: SIGSEGV in self
+ **/
+ @Test
+ @SecurityTest(minPatchLevel = "2017-04")
+ public void testPocCVE_2017_0557() throws Exception {
+ String inputFiles[] = {"cve_2017_0557.m2v"};
+ runMpeg2DecodeTest(inputFiles,
+ "--input " + AdbUtils.TMP_PATH + inputFiles[0] + " --num_cores 2 --num_frames -1",
+ getDevice());
+ }
+
+ /**
* b/62887820
* Vulnerability Behaviour: EXIT_VULNERABLE (113)
**/