1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-07-23 01:32:15 +08:00
Gilles Peskine 0c510f36dd Fix NULL+0 in test code
Fix likely harmless undefined behavior in cipher tests pointed out by
UBSan with recent compilers (e.g. Clang 10). When the complete output
is empty, the output buffer is NULL. Adding an integer to a null
pointer is undefined behavior even when the integer is 0, so make a
special case for that.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-03-24 00:41:51 +01:00
..
2021-03-24 00:41:51 +01:00
2020-09-07 14:01:52 +02:00