mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-14 16:08:46 +02:00
Since it is implementation-dependent whether malloc(0) returns NULL or a pointer, explicitly represent zero-length buffers as NULL in the buffer-copy struct, so as to have a uniform behaviour. Signed-off-by: David Horstmann <david.horstmann@arm.com>