mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-10 19:04:55 +00:00
42649d9270
psa_cipher_encrypt() and psa_cipher_decrypt() sometimes add a zero offset to a null pointer when the cipher does not use an IV. This is undefined behavior, although it works as naively expected on most platforms. This can cause a crash with modern Clang+ASan (depending on compiler optimizations). Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
4 lines
111 B
Plaintext
4 lines
111 B
Plaintext
Bugfix
|
|
* Fix undefined behavior (typically harmless in practice) in PSA ECB
|
|
encryption and decryption.
|