mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-01 14:49:29 +01:00
In practice, calling memcpy with NULL buffer and 0 size works on the ESP32, but the C standard considers this an undefined behavior. When building with UBSAN checks enabled, compiler will insert a check that memcpy argument is non-NULL, regardless of the size argument. This caused a failure in tools/test_apps/system/panic, which is built with USBAN enabled for several components.
7.2 KiB
7.2 KiB