aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2022-02-04 11:57:13 +0000
committerAlexander Potapenko <glider@google.com>2022-02-04 18:27:47 +0000
commitd8cafe2a98c92c95ea6c1ba9d7972014ee6dc47c (patch)
tree79c26edc1363347e4530aafe27fe3d14a84eaee7
parentc9727b8ce3f877e1b658f4368a84bab4d29cccf3 (diff)
downloadconfigs-d8cafe2a98c92c95ea6c1ba9d7972014ee6dc47c.tar.gz
Require CONFIG_INIT_STACK_ALL_ZERO on arches that support it
CONFIG_INIT_STACK_ALL_ZERO minimizes the effect of bugs caused by uninitialized locals, so we want to prevent it from being accidentally disabled. Bug: 204439281 Bug: 205279854 Test: TreeHugger Change-Id: I2014cd9bc2e3ebb8442ccc632c82619d62645dd4
-rw-r--r--android-5.10/android-base-conditional.xml14
-rw-r--r--android-5.15/android-base-conditional.xml14
2 files changed, 28 insertions, 0 deletions
diff --git a/android-5.10/android-base-conditional.xml b/android-5.10/android-base-conditional.xml
index 9d1e9d8..2d467bd 100644
--- a/android-5.10/android-base-conditional.xml
+++ b/android-5.10/android-base-conditional.xml
@@ -216,3 +216,17 @@
<value type="bool">y</value>
</config>
</group>
+
+<!-- CONFIG_INIT_STACK_ALL_ZERO requirement -->
+<group>
+ <conditions>
+ <config>
+ <key>CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO</key>
+ <value type="bool">y</value>
+ </config>
+ </conditions>
+ <config>
+ <key>CONFIG_INIT_STACK_ALL_ZERO</key>
+ <value type="bool">y</value>
+ </config>
+</group> \ No newline at end of file
diff --git a/android-5.15/android-base-conditional.xml b/android-5.15/android-base-conditional.xml
index 08c572b..23f53a6 100644
--- a/android-5.15/android-base-conditional.xml
+++ b/android-5.15/android-base-conditional.xml
@@ -224,3 +224,17 @@
<value type="bool">y</value>
</config>
</group>
+
+<!-- CONFIG_INIT_STACK_ALL_ZERO requirement -->
+<group>
+ <conditions>
+ <config>
+ <key>CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO</key>
+ <value type="bool">y</value>
+ </config>
+ </conditions>
+ <config>
+ <key>CONFIG_INIT_STACK_ALL_ZERO</key>
+ <value type="bool">y</value>
+ </config>
+</group> \ No newline at end of file