[RESTRICT AUTOMERGE] CTS test for Android Security b/63873837
Bug: 63873837
Bug: 72440276
Test: Ran the new testcase on 8.0.0_r34 with/without patch
Change-Id: I7335ad1c3e991ef2f7c5c91bb8263ecfade29007
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0854.m2v b/hostsidetests/securitybulletin/res/cve_2017_0854.m2v
new file mode 100644
index 0000000..9d2e4fc
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0854.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 fd3ad61..e825243 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -353,6 +353,20 @@
******************************************************************************/
/**
+ * b/63873837
+ * Vulnerability Behaviour: SIGSEGV in self
+ */
+ @Test
+ @SecurityTest(minPatchLevel = "2017-11")
+ public void testPocCVE_2017_0854() throws Exception {
+ String inputFiles[] = {"cve_2017_0854.m2v"};
+ runMpeg2DecodeMemTest(inputFiles,
+ "--input " + AdbUtils.TMP_PATH + inputFiles[0] + " --num_cores 1"
+ + " --num_frames -1 --arch ARM_NONEON --max_wd 16 --max_ht 16",
+ getDevice());
+ }
+
+ /**
* b/35219737
* Vulnerability Behaviour: SIGSEGV in self
**/