[RESTRICT AUTOMERGE] CTS test for Android Security b/34779227
Bug: 34779227
Bug: 72456872
Test: Ran the new testcase on android-8.0.0_r11 with/without patch
Change-Id: I64b54f5fa7e4c97e7885a6d4e9335e89be657c17
(cherry picked from commit 8736209908791a2628f26d3f8a1903aea16a12d0)
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0675.hevc b/hostsidetests/securitybulletin/res/cve_2017_0675.hevc
new file mode 100644
index 0000000..d915e0f
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0675.hevc
Binary files differ
diff --git a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
index 825bf7b9..d232639 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -87,6 +87,19 @@
******************************************************************************/
/**
+ * b/34779227
+ * Vulnerability Behaviour: SIGSEGV in self
+ **/
+ @Test
+ @SecurityTest(minPatchLevel = "2017-07")
+ public void testPocCVE_2017_0675() throws Exception {
+ String inputFiles[] = {"cve_2017_0675.hevc"};
+ runHevcDecodeMemTest(inputFiles,
+ "--input " + AdbUtils.TMP_PATH + inputFiles[0] + " --num_frames -1",
+ getDevice());
+ }
+
+ /**
* b/65719872
* Vulnerability Behaviour: SIGSEGV in self
**/