Verify b/67737022 fix presence
Verify the presence of patch for integer overflow in ACodec.
Bug: 67737022
Test: ran new testcase on master with/without patch
Change-Id: Ibaf76af1dd597bf99637b26a32bec0979d2bff19
(cherry picked from commit 148ad361becc7a469a7e08c13fcd37a520474718)
diff --git a/tests/tests/security/res/raw/bug_67737022.mp4 b/tests/tests/security/res/raw/bug_67737022.mp4
new file mode 100644
index 0000000..c2136e5
--- /dev/null
+++ b/tests/tests/security/res/raw/bug_67737022.mp4
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 4e48304..ee36ca8 100644
--- a/tests/tests/security/src/android/security/cts/StagefrightTest.java
+++ b/tests/tests/security/src/android/security/cts/StagefrightTest.java
@@ -416,6 +416,17 @@
doStagefrightTest(R.raw.bug_35467107);
}
+ /***********************************************************
+ to prevent merge conflicts, add O tests below this comment,
+ before any existing test methods
+ ***********************************************************/
+
+ @SecurityTest
+ public void testBug_67737022() throws Exception {
+ doStagefrightTest(R.raw.bug_67737022);
+ }
+
+
private void doStagefrightTest(final int rid) throws Exception {
doStagefrightTestMediaPlayer(rid);
doStagefrightTestMediaCodec(rid);