zephyr/cmake
Flavio Ceolin 3fc5d971fe security: Add compiler static analysis support
Enable GCC builtin static analysis in Zephyr's static code analysis
(SCA) infra.

When this option is enabled GCC performs a static analysis and
can point problems like:

sample.c

+	int *j;
+
+	if (j != NULL) {
+		printf("j != NULL\n");

output:

${ZEPHYR_BASE}/samples/userspace/hello_world_user/src/main.c:30:12:
warning: use of uninitialized value 'j' [CWE-457]
[-Wanalyzer-use-of-uninitialized-value]

   30 |         if (j != NULL) {
      |            ^
  'main': events 1-2
    |
    |   25 |         int *j;
    |      |              ^
    |      |              |
    |      |              (1) region created on stack here
    |......
    |   30 |         if (j != NULL) {
    |      |            ~
    |      |            |
    |      |            (2) use of uninitialized value 'j' here

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-01-25 12:07:27 +01:00
..
app
bintools llext: move all flags to compiler specific cmake files 2024-01-21 10:59:49 +01:00
compiler llext: move all flags to compiler specific cmake files 2024-01-21 10:59:49 +01:00
emu config: qemu: Add QEMU_EXTRA_FLAGS config option 2023-10-20 15:03:55 +02:00
flash west runner: Add exe file to configuration 2023-10-10 15:26:09 +02:00
ide
linker cmake: code_relocation: Re-run when relocation_dict.txt changes 2024-01-15 13:20:17 +01:00
linker_script zbus: add priority boost feature 2024-01-04 09:41:54 +01:00
makefile_exports
modules linker: Only use itcm and dtcm snippets if regions exist 2024-01-24 22:10:11 -06:00
reports
sca security: Add compiler static analysis support 2024-01-25 12:07:27 +01:00
toolchain toolchain: esp32: fix cmake build issue with 'espressif' toolchain 2023-11-22 09:52:29 +01:00
usage cmake: add initlevels to usage 2023-11-24 11:39:21 +01:00
util
cfb.cmake
extra_flags.cmake cmake: extra_flags: Use zephyr_get 2023-10-24 11:35:27 +02:00
gcc-m-cpu.cmake
gcc-m-fpu.cmake
gen_version_h.cmake
hex.cmake cmake: hex: deprecate use of to_hex() and from_hex() utility functions 2024-01-22 09:48:33 +00:00
kobj.cmake
mcuboot.cmake cmake: mcuboot: set align to 1 for overwrite only mode 2024-01-12 09:59:51 +01:00
package_helper.cmake cmake: stub zephyr_set(... SCOPE ...) function in package helper 2023-10-05 09:43:28 +01:00
pristine.cmake
target_toolchain_flags.cmake
verify-toolchain.cmake
vif.cmake