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

Bug: 38496660
Bug: 72443118
Test: Ran the new testcase on android-8.0.0_r11 with/without patch

Change-Id: I8bd90559b6c229b1fec1e3785f7d2dba46bb55c0
Merged-In: I6c92b4c42f06979124d78a57c8d925ba683b2b29
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0776.h264 b/hostsidetests/securitybulletin/res/cve_2017_0776.h264
new file mode 100644
index 0000000..64651a8
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0776.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 4d6860f..d5e43cf 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -169,6 +169,19 @@
      ******************************************************************************/
 
     /**
+     * b/38496660
+     * Vulnerability Behaviour: SIGSEGV in self
+     **/
+    @Test
+    @SecurityTest(minPatchLevel = "2017-09")
+    public void testPocCVE_2017_0776() throws Exception {
+        String inputFiles[] = {"cve_2017_0776.h264"};
+        runAvcDecodeMemTest(inputFiles,
+                "-i " + AdbUtils.TMP_PATH + inputFiles[0] + " --num_frames -1 --num_cores 4",
+                getDevice());
+    }
+
+    /**
      * b/71375536
      * Vulnerability Behaviour: SIGSEGV in self
      **/