[RESTRICT AUTOMERGE] CTS test for Android Security b/33450635
Bug: 33450635
Bug: 72461682
Test: Ran the new testcase on android-8.0.0_r11 with/without patch
Change-Id: I7bfa3303be61989233b03fece4bd54d4229b050f
(cherry picked from commit 8fc797b41465e0ead222c6c65910be929291c371)
diff --git a/hostsidetests/securitybulletin/res/cve_2017_0469.h264 b/hostsidetests/securitybulletin/res/cve_2017_0469.h264
new file mode 100644
index 0000000..9b6e069
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_0469.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 69c7aa2..ad76e07 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -182,6 +182,19 @@
******************************************************************************/
/**
+ * b/33450635
+ * Vulnerability Behaviour: SIGSEGV in self
+ **/
+ @Test
+ @SecurityTest(minPatchLevel = "2017-03")
+ public void testPocCVE_2017_0469() throws Exception {
+ String inputFiles[] = {"cve_2017_0469.h264"};
+ runAvcDecodeMemTest(inputFiles,
+ "--input " + AdbUtils.TMP_PATH + inputFiles[0] + " --output /dev/null",
+ getDevice());
+ }
+
+ /**
* b/33551775
* Vulnerability Behaviour: SIGSEGV in self
**/