Ivan Grokhotkov
1d44e40fb1
hal: spi_flash: avoid calling memcpy with NULL buffer
...
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.
2021-07-09 11:24:25 +02:00
..
2021-06-24 13:16:14 +03:00
2021-06-21 21:48:49 +02:00
2021-05-24 12:39:37 +00:00
2021-07-05 10:25:32 +08:00
2021-07-06 16:21:43 +08:00
2021-07-06 18:04:04 +08:00
2021-05-20 19:53:00 +10:00
2021-07-05 11:22:38 +08:00
2021-05-17 03:43:02 +02:00
2021-07-08 06:32:39 +00:00
2021-07-01 19:53:50 +08:00
2021-07-01 16:13:31 +02:00
2021-07-09 12:29:56 +08:00
2021-07-01 19:53:11 +08:00
2021-07-01 16:13:31 +02:00
2021-07-09 12:29:56 +08:00
2021-07-01 19:53:50 +08:00
2021-06-21 11:19:56 +08:00
2021-07-08 14:27:31 +02:00
2021-07-01 20:36:39 +08:00
2021-07-01 19:53:11 +08:00
2021-05-05 15:45:54 +02:00
2021-06-02 11:19:30 +00:00
2021-07-05 20:09:49 +08:00
2021-06-02 11:19:30 +00:00
2021-05-31 20:06:09 +08:00
2021-07-01 12:50:14 -03:00
2021-05-12 17:53:32 +08:00
2021-07-07 11:58:18 +00:00
2021-07-06 11:38:42 +08:00
2021-07-01 19:53:11 +08:00
2021-07-06 11:38:40 +08:00
2021-07-01 19:53:11 +08:00
2021-07-01 19:53:50 +08:00
2021-07-01 19:53:11 +08:00
2021-06-22 16:30:29 +00:00
2021-07-07 11:38:03 +08:00
2021-07-01 19:53:11 +08:00
2021-05-17 11:43:25 +05:30
2021-07-01 19:53:50 +08:00
2021-06-21 17:45:43 +08:00
2021-06-15 13:39:48 +08:00
2021-05-06 14:32:40 +08:00
2021-07-01 19:53:50 +08:00
2021-07-09 11:24:25 +02:00
2021-06-22 14:14:10 +08:00
2021-07-05 11:20:55 +08:00
2021-05-17 02:58:32 +02:00
2021-07-01 19:53:11 +08:00
2021-06-24 18:51:43 +00:00
2021-07-01 19:53:11 +08:00
2021-07-01 15:45:05 +02:00
2021-06-30 08:55:39 +01:00
2021-07-01 19:53:11 +08:00
2021-06-22 11:28:01 +08:00
2021-07-07 15:27:47 +08:00
2021-05-18 01:32:59 +00:00
2021-07-01 19:53:11 +08:00
2021-06-08 05:48:30 +00:00
2021-06-22 08:26:08 +08:00
2021-07-01 20:36:39 +08:00
2021-06-19 14:27:44 +08:00
2021-07-09 06:13:22 +00:00
2021-07-05 11:25:15 +08:00
2021-07-01 19:53:11 +08:00
2021-06-28 10:22:24 +08:00
2021-05-16 14:11:21 +00:00
2021-07-01 19:53:11 +08:00
2021-07-01 19:53:11 +08:00
2021-06-29 21:09:27 +08:00
2021-07-05 11:22:38 +08:00
2021-06-07 12:23:28 +00:00
2021-07-02 09:41:23 +05:30
2021-07-01 20:36:39 +08:00