[RESTRICT AUTOMERGE] CTS test for Android Security b/65034175

Bug: 65034175
Bug: 72323109
Test: Ran the new testcase on android-8.1.0_r1 with/without patch

Change-Id: Iad77c9967a0cd6f34122e0e1a058d172a4b22b65
(cherry picked from commit 3c4aca335bccbb5d2907779f150b8c479a82795a)
diff --git a/hostsidetests/securitybulletin/res/cve_2017_13187.hevc b/hostsidetests/securitybulletin/res/cve_2017_13187.hevc
new file mode 100644
index 0000000..287bd95
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_13187.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 80e2a01..b00fec3 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -42,6 +42,14 @@
     below this comment, before any existing test methods
     ***********************************************************/
 
+    @SecurityTest(minPatchLevel = "2018-01")
+    public void testPocCVE_2017_13187() throws Exception {
+        String inputFiles[] = {"cve_2017_13187.hevc"};
+        runHevcDecodeTest(inputFiles, "--input " + TMP_FILE_PATH
+                        + "cve_2017_13187.hevc --num_frames -1 --num_cores 4",
+                getDevice(), null);
+    }
+
     @SecurityTest
     public void testPocBug_73965867() throws Exception {
         String inputFiles[] = {"bug_73965867.hevc"};