Peter Maydell
1257065783
hw/net/rocker: Avoid variable length array
...
Replace an on-stack variable length array in of_dpa_ig() with
a g_autofree heap allocation.
The codebase has very few VLAs, and if we can get rid of them all we
can make the compiler error on new additions. This is a defensive
measure against security bugs where an on-stack dynamic allocation
isn't correctly size-checked (e.g. CVE-2021-3527).
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2023-09-18 14:36:13 +08:00
..
2023-07-25 17:15:47 +03:00
2023-06-26 09:49:24 -04:00
2023-06-20 10:01:30 +02:00
2023-05-26 09:10:49 +02:00
2023-09-08 16:41:35 +01:00
2023-09-08 13:08:52 +03:00
2022-04-06 14:31:55 +02:00
2023-09-01 11:40:04 +02:00
2023-09-11 11:45:54 +10:00
2023-09-18 14:36:13 +08:00
2023-06-20 10:01:30 +02:00
2021-05-02 17:24:51 +02:00
2023-06-22 18:55:14 -04:00
2023-09-12 10:37:02 +04:00
2023-08-31 19:47:43 +02:00
2023-08-22 17:30:59 +01:00
2023-06-24 13:39:48 +02:00
2023-03-13 15:39:31 +04:00
2023-09-06 11:14:55 -04:00
2023-09-12 10:37:02 +04:00
2023-09-06 22:48:04 -04:00
2023-06-26 09:50:00 -04:00
2023-09-11 09:12:12 -04:00
2023-06-20 10:01:30 +02:00
2023-06-20 10:01:30 +02:00
2023-07-11 00:11:25 +02:00
2023-08-24 16:58:16 +08:00
2023-08-23 12:06:39 +02:00
2023-07-12 09:25:37 +02:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-09-08 16:41:35 +01:00
2023-09-18 14:36:13 +08:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:51 +03:00
2023-09-13 13:41:09 -04:00
2023-07-17 11:05:52 +01:00
2023-03-22 15:06:57 +00:00
2023-08-11 12:15:24 -04:00
2023-08-03 16:06:49 -04:00
2023-08-11 12:15:24 -04:00
2023-06-20 10:01:30 +02:00
2023-09-08 13:08:52 +03:00
2023-06-20 10:01:30 +02:00
2023-06-28 14:27:59 +02:00
2023-09-11 11:45:55 +10:00
2023-08-31 09:45:18 +01:00
2023-06-05 20:48:34 +02:00
2023-09-12 11:13:33 +02:00
2023-07-14 11:10:58 +02:00
2023-09-06 11:14:55 -04:00
2023-08-31 19:47:43 +02:00
2023-05-22 09:44:48 +02:00
2023-07-10 16:17:08 -04:00
2023-07-25 17:14:07 +03:00
2023-07-10 18:59:32 -04:00
2023-09-01 11:40:04 +02:00
2023-06-20 10:01:30 +02:00
2023-07-14 11:31:54 -04:00
2021-07-20 20:10:21 +02:00
2023-09-07 14:01:29 -04:00
2023-08-31 19:47:43 +02:00
2023-09-11 08:34:06 +02:00
2023-09-08 17:03:09 +02:00
2023-06-20 10:01:30 +02:00
2023-09-08 13:08:52 +03:00
2023-03-24 14:52:14 +00:00
2023-09-08 13:08:52 +03:00
2023-09-07 14:01:29 -04:00
2023-09-07 14:01:29 -04:00