[RESTRICT AUTOMERGE] CTS test for Android Security b/34897036
Bug: 34897036
Bug: 72459887
Test: Ran the new testcase on android-7.0.0_r15 with/without patch
Change-Id: I467c3826d4be801527cb2d088a5f188e5bb6fc72
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0589.hevc b/hostsidetests/securitybulletin/res/cve_2017_0589.hevc
new file mode 100644
index 0000000..b0f5398
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0589.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 abb5500..49f5b68 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -72,6 +72,14 @@
below this comment, before any existing test methods
***********************************************************/
+ @SecurityTest(minPatchLevel = "2017-05")
+ public void testPocCVE_2017_0589() throws Exception {
+ String inputFiles[] = {"cve_2017_0589.hevc"};
+ runHevcDecodeMemTest(inputFiles,
+ "--input " + TMP_FILE_PATH + inputFiles[0] + " --save_output 0"
+ + " --num_frames -1", getDevice(), null);
+ }
+
@SecurityTest(minPatchLevel = "2018-01")
public void testPocCVE_2017_13193() throws Exception {
String inputFiles[] = {"cve_2017_13193.hevc"};