fix(esp_common/esp_fault): make ESP_FAULT_ASSERT survive optimization

ESP_FAULT_ASSERT(C) was silently deleted by the optimizer when C is a cached
flag/status already proven by a preceding `if (!C) return/goto`: the compiler
folds C to a constant and drops all three checks, removing the fault-injection
protection with no warning.
This commit is contained in:
harshal.patil
2026-06-22 11:20:04 +05:30
parent bfb6b4a2b2
commit 024de60208
11 changed files with 45 additions and 24 deletions
@@ -5,3 +5,4 @@ components/esp_security/test_apps/crypto_drivers:
- if: ((SOC_HMAC_SUPPORTED == 1) or (SOC_DIG_SIGN_SUPPORTED == 1)) or (SOC_KEY_MANAGER_SUPPORTED == 1)
depends_components:
- esp_security
- esp_hal_security