[RESTRICT AUTOMERGE] CTS test for Android Security b/36035683
Bug: 36035683
Bug: 72456646
Test: Ran the new testcase on android-8.0.0_r11 with/without patch
Change-Id: Ibe12d9f055994bcf8b16d714fe4469b25d128b30
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0469_2.h264 b/hostsidetests/securitybulletin/res/cve_2017_0469_2.h264
new file mode 100644
index 0000000..6781968
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0469_2.h264
Binary files differ
diff --git a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
index 3ecf567..bb71b73 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -211,6 +211,18 @@
******************************************************************************/
/**
+ * b/36035683
+ * Vulnerability Behaviour: SIGSEGV in self
+ **/
+ @Test
+ @SecurityTest(minPatchLevel = "2017-07")
+ public void testPocCVE_2017_0469_2() throws Exception {
+ String inputFiles[] = {"cve_2017_0469_2.h264"};
+ runAvcDecodeMemTest(inputFiles,
+ "--input " + AdbUtils.TMP_PATH + inputFiles[0] + " --num_cores 2", getDevice());
+ }
+
+ /**
* b/36035074
* Vulnerability Behaviour: SIGSEGV in self
**/