commit | badfe331e50788018a5607481519206aa870f943 | [log] [tgz] |
---|---|---|
author | Anuj Joshi <anuj.joshi@ittiam.com> | Thu Dec 10 02:33:19 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Dec 10 02:33:19 2020 +0000 |
tree | 84d3df9f0aceb28454c6d486924f100db0328cf6 | |
parent | e0ff7361feca4bfdeb0fe818bebe8f4bf1c46f76 [diff] | |
parent | b876001e7636fcbb3343577771cbaeed6963c972 [diff] |
CTS test for Android security b/170583712 am: 6261455f92 am: d8ee0928b3 am: b876001e76 Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/13188214 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I71bb528c800b49492a11597365a315d11ad8f596
diff --git a/tests/tests/security/res/raw/cve_2021_0312.wav b/tests/tests/security/res/raw/cve_2021_0312.wav new file mode 100644 index 0000000..aa144ec --- /dev/null +++ b/tests/tests/security/res/raw/cve_2021_0312.wav Binary files differ
diff --git a/tests/tests/security/src/android/security/cts/StagefrightTest.java b/tests/tests/security/src/android/security/cts/StagefrightTest.java index 7f64d0c..9a1a6df 100644 --- a/tests/tests/security/src/android/security/cts/StagefrightTest.java +++ b/tests/tests/security/src/android/security/cts/StagefrightTest.java
@@ -1259,6 +1259,16 @@ ***********************************************************/ @Test + @SecurityTest(minPatchLevel = "2021-01") + public void testStagefright_cve_2021_0312() throws Exception { + assumeFalse(ModuleDetector.moduleIsPlayManaged( + getInstrumentation().getContext().getPackageManager(), + MainlineModule.MEDIA)); + doStagefrightTestExtractorSeek(R.raw.cve_2021_0312, 2, new CrashUtils.Config() + .setSignals(CrashUtils.SIGSEGV, CrashUtils.SIGBUS, CrashUtils.SIGABRT)); + } + + @Test @SecurityTest(minPatchLevel = "2018-09") public void testStagefright_cve_2018_9474() throws Exception { MediaPlayer mp = new MediaPlayer();