RESTRICT AUTOMERGE : CTS test for Android Security b/72460579 b/34277115
Test: successful run of newly introduced CTS test case.
Bug:72460579
Bug:34277115
Change-Id: I534c4a36a589ff511f15b82452f140561069f5fe
diff --git a/hostsidetests/security/src/android/security/cts/Poc17_05.java b/hostsidetests/security/src/android/security/cts/Poc17_05.java
index dac7462..aa0007d 100644
--- a/hostsidetests/security/src/android/security/cts/Poc17_05.java
+++ b/hostsidetests/security/src/android/security/cts/Poc17_05.java
@@ -46,4 +46,16 @@
"[\\s\\n\\S]*>>> /system/bin/" +
"mediaserver <<<[\\s\\n\\S]*", logcatOut);
}
+
+ /**
+ * b/34277115
+ */
+ @SecurityTest
+ public void testPocCVE_2017_0630() throws Exception {
+ if (containsDriver(getDevice(), "/sys/kernel/debug/tracing/printk_formats")) {
+ String commandOutput = AdbUtils.runCommandLine("cat /sys/kernel/debug/tracing" +
+ "/printk_formats", getDevice());
+ assertNotMatchesMultiLine(".*0x(?!0){8,16}[0-9a-fA-F]{8,16} : .*", commandOutput);
+ }
+ }
}