Arnaldo Carvalho de Melo
cd8ce27e6c
perf map: Tighten snprintf() string precision to pass gcc check on some 32-bit arches
...
commit 77d02bd00c upstream.
Noticed on a debian:experimental mips and mipsel cross build build
environment:
perfbuilder@ec265a086e9b:~$ mips-linux-gnu-gcc --version | head -1
mips-linux-gnu-gcc (Debian 10.2.1-3) 10.2.1 20201224
perfbuilder@ec265a086e9b:~$
CC /tmp/build/perf/util/map.o
util/map.c: In function 'map__new':
util/map.c:109:5: error: '%s' directive output may be truncated writing between 1 and 2147483645 bytes into a region of size 4096 [-Werror=format-truncation=]
109 | "%s/platforms/%s/arch-%s/usr/lib/%s",
| ^~
In file included from /usr/mips-linux-gnu/include/stdio.h:867,
from util/symbol.h:11,
from util/map.c:2:
/usr/mips-linux-gnu/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 32 or more bytes (assuming 4294967321) into a destination of size 4096
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Since we have the lenghts for what lands in that place, use it to give
the compiler more info and make it happy.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com >
Cc: Anders Roxell <anders.roxell@linaro.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2021-04-16 11:43:22 +02:00
..
2020-08-21 10:22:23 -03:00
2020-01-14 12:02:19 -03:00
2020-05-05 16:35:32 -03:00
2020-11-12 17:55:41 -03:00
2021-03-04 11:38:09 +01:00
2019-09-20 09:19:20 -03:00
2020-11-03 08:32:43 -03:00
2019-11-28 08:08:38 -03:00
2019-11-28 08:08:38 -03:00
2020-10-14 08:46:22 -03:00
2020-05-28 10:03:27 -03:00
2020-06-01 12:24:23 -03:00
2021-03-30 14:32:06 +02:00
2020-08-06 08:24:03 -03:00
2021-04-14 08:42:11 +02:00
2020-03-09 21:43:25 -03:00
2020-05-05 16:35:29 -03:00
2020-05-05 16:35:29 -03:00
2020-09-09 11:28:28 -07:00
2019-07-29 18:34:42 -03:00
2020-06-09 12:40:04 -03:00
2019-09-20 09:19:20 -03:00
2020-05-28 10:03:27 -03:00
2020-10-14 13:27:28 -03:00
2020-11-03 09:14:45 -03:00
2020-10-14 08:46:22 -03:00
2019-08-29 17:38:32 -03:00
2019-08-26 11:58:29 -03:00
2019-07-09 10:13:27 -03:00
2019-06-05 17:36:37 +02:00
2020-10-14 13:34:26 -03:00
2020-10-14 13:34:26 -03:00
2019-08-14 10:48:39 -03:00
2020-04-16 12:19:08 -03:00
2020-09-28 09:18:06 -03:00
2020-09-28 09:18:06 -03:00
2020-08-06 09:33:57 -03:00
2020-08-06 09:33:57 -03:00
2020-05-28 10:03:26 -03:00
2019-08-31 22:24:10 -03:00
2019-08-31 22:24:10 -03:00
2019-07-09 10:13:26 -03:00
2020-10-13 17:03:19 -03:00
2020-10-13 17:03:19 -03:00
2019-10-15 12:05:18 -03:00
2019-09-25 09:51:49 -03:00
2020-05-28 10:03:27 -03:00
2020-05-28 10:03:27 -03:00
2020-03-24 10:36:00 -03:00
2019-11-29 12:20:45 -03:00
2019-08-22 17:16:57 -03:00
2020-05-28 10:03:27 -03:00
2020-09-01 12:15:52 -03:00
2020-05-05 16:35:32 -03:00
2020-08-06 09:43:37 -03:00
2020-08-06 09:43:37 -03:00
2019-11-06 15:43:05 -03:00
2019-11-06 15:43:05 -03:00
2019-11-26 11:07:46 -03:00
2019-07-29 18:34:42 -03:00
2020-08-14 09:15:47 -03:00
2019-11-12 08:32:27 -03:00
2020-05-28 10:03:28 -03:00
2019-09-20 09:19:20 -03:00
2020-10-14 11:28:52 -03:00
2020-10-14 11:28:52 -03:00
2020-10-14 11:28:52 -03:00
2019-11-19 19:12:26 -03:00
2020-11-27 14:36:15 -03:00
2019-11-06 15:43:06 -03:00
2019-09-20 09:19:20 -03:00
2020-04-03 09:37:55 -03:00
2020-08-06 09:42:20 -03:00
2021-03-04 11:38:03 +01:00
2020-07-10 08:39:14 -03:00
2019-08-31 22:24:10 -03:00
2021-03-04 11:38:09 +01:00
2021-03-04 11:38:09 +01:00
2020-05-28 10:03:24 -03:00
2020-05-28 10:03:24 -03:00
2020-05-28 10:03:24 -03:00
2020-09-28 08:55:48 -03:00
2020-09-28 08:55:48 -03:00
2019-08-15 12:26:13 -03:00
2019-08-15 12:25:55 -03:00
2020-07-30 07:01:49 -03:00
2020-07-30 07:01:49 -03:00
2020-06-22 16:28:09 -03:00
2020-07-30 07:01:49 -03:00
2019-11-28 08:08:38 -03:00
2019-11-28 08:08:38 -03:00
2020-05-29 16:51:38 -03:00
2019-11-29 12:20:45 -03:00
2019-09-25 16:26:41 -03:00
2019-08-26 11:58:29 -03:00
2019-07-09 10:13:26 -03:00
2020-11-03 08:26:55 -03:00
2020-11-27 14:19:33 -03:00
2020-10-14 11:28:12 -03:00
2020-08-06 09:35:06 -03:00
2019-07-09 10:13:26 -03:00
2020-05-28 10:03:24 -03:00
2020-05-28 10:03:24 -03:00
2020-05-05 16:35:30 -03:00
2019-06-05 17:36:37 +02:00
2021-03-04 11:38:09 +01:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:04 +02:00
2020-09-22 13:46:40 -03:00
2020-05-28 10:03:27 -03:00
2019-09-20 10:28:26 -03:00
2020-03-04 10:34:10 -03:00
2019-08-29 17:38:32 -03:00
2019-09-20 09:19:20 -03:00
2021-01-19 18:27:29 +01:00
2020-09-17 15:47:12 -03:00
2019-11-26 11:07:46 -03:00
2021-04-16 11:43:22 +02:00
2020-10-13 11:01:37 -03:00
2019-11-26 11:07:46 -03:00
2020-05-05 16:35:30 -03:00
2019-08-31 19:10:40 -03:00
2020-05-28 10:03:25 -03:00
2020-05-28 10:03:25 -03:00
2019-09-20 09:19:22 -03:00
2020-10-13 13:02:20 -03:00
2020-09-28 09:16:21 -03:00
2020-03-12 11:32:46 -03:00
2020-01-06 11:46:09 -03:00
2019-09-20 10:28:21 -03:00
2019-09-20 10:28:21 -03:00
2020-04-30 10:48:32 -03:00
2020-05-28 10:03:27 -03:00
2019-08-31 19:10:19 -03:00
2020-10-14 12:24:28 -03:00
2020-09-28 09:22:39 -03:00
2020-10-14 12:24:28 -03:00
2020-09-28 09:22:39 -03:00
2020-12-30 11:53:59 +01:00
2020-08-14 09:15:47 -03:00
2020-08-14 09:15:47 -03:00
2019-08-31 22:24:10 -03:00
2019-08-31 22:24:10 -03:00
2020-07-10 08:20:01 -03:00
2020-07-10 08:20:01 -03:00
2020-07-10 08:20:01 -03:00
2019-10-10 09:29:33 -03:00
2019-11-28 08:08:38 -03:00
2019-09-20 09:19:20 -03:00
2020-05-29 16:51:38 -03:00
2020-05-29 16:51:38 -03:00
2020-09-15 09:22:42 -03:00
2020-09-15 09:22:42 -03:00
2020-10-01 12:10:56 -03:00
2020-10-14 08:46:22 -03:00
2019-11-18 19:09:23 -03:00
2020-12-30 11:54:02 +01:00
2019-11-18 19:08:02 -03:00
2020-11-27 14:36:15 -03:00
2020-09-18 09:20:47 -03:00
2020-05-28 10:03:27 -03:00
2020-04-03 09:37:55 -03:00
2020-09-28 09:16:21 -03:00
2019-06-05 17:37:04 +02:00
2020-09-17 15:47:58 -03:00
2020-09-04 14:38:15 -03:00
2019-07-09 14:59:11 -03:00
2019-07-09 14:59:11 -03:00
2019-09-20 09:19:20 -03:00
2020-04-16 12:19:15 -03:00
2020-05-05 16:35:29 -03:00
2019-09-20 09:19:20 -03:00
2019-07-29 18:34:42 -03:00
2019-07-29 18:34:42 -03:00
2021-01-19 18:27:29 +01:00
2019-11-22 10:48:13 -03:00
2019-07-09 10:13:26 -03:00
2020-04-14 08:43:18 -03:00
2020-05-28 10:03:24 -03:00
2020-05-05 16:35:29 -03:00
2021-03-17 17:06:17 +01:00
2020-04-18 09:05:01 -03:00
2019-10-11 10:57:00 -03:00
2019-10-11 10:57:00 -03:00
2019-11-28 08:08:38 -03:00
2020-01-30 11:55:26 +01:00
2020-11-27 14:31:37 -03:00
2020-09-17 15:48:08 -03:00
2020-09-17 15:48:08 -03:00
2020-09-28 09:07:08 -03:00
2019-08-31 19:10:19 -03:00
2020-10-14 13:34:26 -03:00
2020-10-14 13:34:26 -03:00
2019-07-09 10:13:26 -03:00
2019-10-15 13:03:57 -03:00
2019-07-01 22:50:40 -03:00
2019-07-09 10:13:26 -03:00
2019-09-20 09:19:21 -03:00
2019-08-29 17:38:31 -03:00
2020-03-24 09:37:27 -03:00
2019-08-31 22:24:05 -03:00
2020-10-14 09:25:36 -03:00
2020-10-14 08:46:42 -03:00
2021-03-04 11:38:07 +01:00
2020-11-03 08:30:34 -03:00
2019-08-31 22:24:05 -03:00
2021-03-30 14:32:06 +02:00
2020-04-03 09:37:55 -03:00
2020-05-29 16:50:29 -03:00
2020-05-29 16:50:26 -03:00
2019-09-20 09:19:20 -03:00
2019-08-29 08:36:12 -03:00
2019-08-29 08:36:12 -03:00
2020-05-05 16:35:29 -03:00
2020-05-05 16:35:29 -03:00
2020-04-18 09:05:01 -03:00
2020-04-18 09:05:01 -03:00
2019-10-15 08:36:22 -03:00
2019-10-15 08:36:22 -03:00
2020-07-10 08:20:01 -03:00
2020-05-05 16:35:30 -03:00
2020-05-05 16:35:29 -03:00
2020-09-17 15:47:58 -03:00
2020-09-17 15:47:58 -03:00
2020-05-28 10:03:27 -03:00
2019-11-05 08:39:27 -03:00
2021-03-17 17:06:17 +01:00
2019-08-29 17:38:32 -03:00
2019-09-20 09:19:20 -03:00
2019-11-05 08:39:27 -03:00
2019-08-29 17:38:32 -03:00
2020-09-22 13:46:40 -03:00
2020-09-22 13:45:21 -03:00
2019-11-26 11:07:46 -03:00
2020-05-28 10:03:27 -03:00
2019-11-26 11:07:46 -03:00
2019-11-26 11:07:46 -03:00
2019-09-20 09:19:20 -03:00
2020-04-16 12:19:08 -03:00
2020-09-10 11:55:37 -03:00
2019-08-31 19:10:19 -03:00
2019-11-26 11:07:46 -03:00
2019-07-09 10:13:26 -03:00
2019-09-20 09:19:20 -03:00
2020-09-01 12:15:21 -03:00