Michael S. Tsirkin
43e229a52b
acpi: use constants as strncpy limit
...
gcc is not smart enough to figure out length was validated before use as
strncpy limit, resulting in this warning:
inlined from ‘virt_set_oem_table_id’ at ../../hw/arm/virt.c:2197:5:
/usr/include/aarch64-linux-gnu/bits/string_fortified.h:106:10: error:
‘__builtin_strncpy’ specified bound depends on the length of the
source argument [-Werror=stringop-overflow=]
Simplify things by using a constant limit instead.
Fixes: 97fc5d507fca ("acpi: Permit OEM ID and OEM table ID fields to be changed")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-02-05 08:52:59 -05:00
..
2020-08-28 10:02:45 +01:00
2020-08-28 15:14:40 +01:00
2021-01-29 15:54:44 +00:00
2020-12-10 11:44:56 +00:00
2020-12-10 12:11:03 +01:00
2020-09-18 09:04:36 +02:00
2020-12-10 12:15:07 -05:00
2020-10-27 11:10:44 +00:00
2020-10-27 11:10:44 +00:00
2020-12-15 12:51:55 -05:00
2020-09-18 14:12:32 -04:00
2020-12-10 12:15:04 -05:00
2021-02-03 10:15:51 +00:00
2020-07-10 15:18:08 +02:00
2020-06-15 22:06:04 +02:00
2020-09-22 16:45:16 -04:00
2020-07-13 14:36:08 +01:00
2020-07-10 15:18:08 +02:00
2020-07-13 14:36:08 +01:00
2020-07-13 14:36:07 +01:00
2020-07-10 15:18:08 +02:00
2021-01-08 15:13:38 +00:00
2020-06-23 16:07:07 +02:00
2020-09-22 16:45:16 -04:00
2021-02-03 10:15:50 +00:00
2020-06-15 22:06:04 +02:00
2020-07-10 15:18:08 +02:00
2020-06-23 16:07:07 +02:00
2020-09-14 14:24:58 +01:00
2021-02-03 10:15:51 +00:00
2021-01-29 15:54:44 +00:00
2021-01-29 15:54:44 +00:00
2020-08-03 17:55:03 +01:00
2020-06-23 16:07:07 +02:00
2021-01-29 15:54:44 +00:00
2021-01-08 15:13:38 +00:00
2021-02-03 10:15:51 +00:00
2021-02-03 10:15:51 +00:00
2021-01-12 21:19:02 +00:00
2021-01-12 21:19:02 +00:00
2020-08-03 17:55:31 +01:00
2020-11-10 11:03:48 +00:00
2020-09-01 11:53:44 +02:00
2020-06-15 22:05:28 +02:00
2021-02-03 10:15:51 +00:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-12-18 15:20:17 -05:00
2020-10-27 11:10:44 +00:00
2020-09-22 16:45:16 -04:00
2021-01-08 15:13:39 +00:00
2020-12-10 12:15:18 -05:00
2020-12-08 13:48:57 -05:00
2020-08-24 10:02:06 +01:00
2020-12-10 11:30:44 +00:00
2021-02-05 08:52:58 -05:00
2020-12-10 12:15:03 -05:00
2021-02-03 10:15:51 +00:00
2020-11-10 11:03:48 +00:00
2020-07-10 15:18:08 +02:00
2020-12-18 15:20:17 -05:00
2020-12-10 12:15:03 -05:00
2020-10-27 11:10:44 +00:00
2020-08-21 06:18:24 -04:00
2020-09-22 16:45:16 -04:00
2020-12-14 14:25:44 -05:00
2021-02-05 08:52:59 -05:00
2021-02-05 08:52:59 -05:00
2020-09-22 16:45:16 -04:00
2020-12-15 12:04:30 +00:00
2020-12-15 12:04:30 +00:00
2021-01-29 10:47:28 +00:00
2020-12-10 11:30:44 +00:00
2020-12-10 12:15:03 -05:00