zephyr/doc/develop
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
..
api doc: api: Change retained memory status to unstable 2024-01-04 09:42:57 +01:00
application doc: add EXTRA_DTC_OVERLAY_FILE to list of important build variables 2023-12-07 10:38:05 +00:00
debug doc: add documenatation about I2C_DUMP_MESSAGES 2023-09-06 17:54:53 +02:00
flash_debug doc: linkserver: update installer link 2024-01-23 22:11:02 -05:00
getting_started doc: use substitutions to replace all current harcoded SDK versions 2024-01-18 10:54:20 +01:00
languages doc: Clarified usage of STL with Minimal C++ Library 2024-01-25 08:54:38 +01:00
manifest doc: Fix double 'the' 2023-11-15 14:25:11 +00:00
optimizations doc: develop: update ram and rom report sample and reduce width 2023-11-08 16:03:48 -05:00
sca security: Add compiler static analysis support 2024-01-25 12:07:27 +01:00
test doc: twister: fix spelling errors 2024-01-15 11:33:06 +00:00
toolchains doc: use substitutions to replace all current harcoded SDK versions 2024-01-18 10:54:20 +01:00
tools
west scripts: zspdx: Include modules as packages in zephyr.spdx 2024-01-09 09:59:57 +01:00
beyond-GSG.rst docs: Introduction: Replace references to native_posix w native_sim 2023-11-14 14:38:10 +01:00
env_vars.rst doc: fix typos 2023-11-08 10:09:44 +01:00
index.rst doc: extract the documentation about debugging to another file 2023-09-06 17:54:53 +02:00
modules.rst doc: develop: modules: Add entry for ZEPHYR_CURRENT_MODULE_NAME 2024-01-24 10:54:17 +01:00