David Horstmann e7bfbc27bf Add underflow check to UNPOISON counter decrement
Make sure that extra UNPOISON calls do not cause the poisoning counter
to underflow and wrap around.

Memory that is unpoisoned multiple times should remain unpoisoned.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-01-17 15:37:54 +00:00
..
drivers Update headers 2023-11-03 12:04:52 +00:00
arguments.h Update headers 2023-11-03 12:04:52 +00:00
asn1_helpers.h Update headers 2023-11-03 12:04:52 +00:00
constant_flow.h Update headers 2023-11-03 12:04:52 +00:00
fake_external_rng_for_test.h Update headers 2023-11-03 12:04:52 +00:00
helpers.h Detect enabled GCC/Clang sanitizers 2023-11-22 18:00:31 +01:00
macros.h Update headers 2023-11-03 12:04:52 +00:00
memory.h Add underflow check to UNPOISON counter decrement 2024-01-17 15:37:54 +00:00
psa_crypto_helpers.h Only poison memory when buffer copying is enabled 2023-12-20 14:49:41 +00:00
psa_exercise_key.h Update headers 2023-11-03 12:04:52 +00:00
psa_helpers.h Update headers 2023-11-03 12:04:52 +00:00
psa_memory_poisoning_wrappers.h Add missing newline at end of file 2023-12-20 14:49:41 +00:00
random.h Update headers 2023-11-03 12:04:52 +00:00
ssl_helpers.h Update headers 2023-11-03 12:04:52 +00:00