[RESTRICT AUTOMERGE] CTS test for Android Security b/71375536
Bug: 71375536
Bug: 74612373
Test: Ran the new testcase on android-8.0.0_r11 with/without patch
Merged-in: I8946a832b773d30f196dde6899dd85b674f09c8c
Change-Id: I8946a832b773d30f196dde6899dd85b674f09c8c
diff --git a/hostsidetests/securitybulletin/res/cve_2017_13250.h264 b/hostsidetests/securitybulletin/res/cve_2017_13250.h264
new file mode 100644
index 0000000..78b57d8
--- /dev/null
+++ b/hostsidetests/securitybulletin/res/cve_2017_13250.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 93d4d45..4b190bd 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/TestMediaCodec.java
@@ -181,6 +181,19 @@
******************************************************************************/
/**
+ * b/71375536
+ * Vulnerability Behaviour: SIGSEGV in self
+ **/
+ @SecurityTest(minPatchLevel = "2018-13")
+ public void testPocCVE_2017_13250() throws Exception {
+ String inputFiles[] = {"cve_2017_13250.h264"};
+ runAvcDecodeMemTest(inputFiles,
+ "--input " + AdbUtils.TMP_PATH + inputFiles[0] + " --save_output 0 --num_frames -1 "
+ + "--chroma_format YUV_420P --share_display_buf 1 --num_cores 1",
+ getDevice());
+ }
+
+ /**
* b/62896384
* Vulnerability Behaviour: SIGSEGV in self
**/