Miguel Ojeda
23066c3f4e
Compiler Attributes: enable -Wstringop-truncation on W=1 (gcc >= 8)
...
Commit 217c3e0196 ("disable stringop truncation warnings for now")
disabled -Wstringop-truncation since it was too noisy.
Having __nonstring available allows us to let GCC know that a string
is not meant to be NUL-terminated, which helps suppressing some
-Wstringop-truncation warnings.
Note that using __nonstring actually triggers other warnings
(-Wstringop-overflow, which is on by default) which may be real
problems. Therefore, cleaning up -Wstringop-truncation warnings
also buys us the ability to uncover further potential problems.
To encourage the use of __nonstring, we put the warning back at W=1.
In the future, if we end up with a fairly warning-free tree,
we might want to enable it by default.
Tested-by: Sedat Dilek <sedat.dilek@gmail.com > # on top of v4.19-rc5, clang 7
Reviewed-by: Kees Cook <keescook@chromium.org >
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com >
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com >
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com >
2018-09-30 20:14:04 +02:00
..
2018-07-18 01:18:05 +09:00
2018-08-22 23:21:43 +09:00
2018-08-22 23:21:36 +09:00
2018-08-26 11:41:08 -07:00
2018-01-19 10:09:41 -08:00
2018-05-17 22:43:35 +09:00
2018-09-03 02:13:48 +09:00
2017-03-28 16:16:52 +02:00
2018-08-22 23:21:40 +09:00
2018-07-28 10:53:44 +09:00
2018-06-05 19:22:35 +02:00
2018-07-29 11:08:38 +09:00
2018-07-18 01:18:05 +09:00
2018-05-17 22:44:57 +09:00
2018-04-07 19:04:02 +09:00
2018-07-18 01:18:05 +09:00
2018-04-09 16:47:28 +02:00
2017-05-14 11:20:44 +09:00
2018-05-17 17:34:43 +02:00
2018-06-28 13:36:39 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-04 16:45:02 -07:00
2018-07-02 23:54:28 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-22 23:21:40 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-14 08:58:56 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 17:18:34 -08:00
2018-09-09 09:14:07 +09:00
2017-11-02 11:10:55 +01:00
2018-07-02 11:25:00 -06:00
2017-05-14 11:20:44 +09:00
2018-05-04 06:21:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-08 09:32:32 +09:00
2018-06-05 09:04:37 -07:00
2018-03-26 02:01:24 +09:00
2017-10-23 08:01:37 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-08 18:56:00 +09:00
2018-06-25 23:21:13 +09:00
2017-05-14 11:20:44 +09:00
2018-08-22 10:52:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2018-05-29 22:04:12 +09:00
2018-08-30 11:37:08 +02:00
2018-06-11 09:16:22 +09:00
2018-08-06 13:36:20 -06:00
2017-11-02 11:10:55 +01:00
2018-04-07 08:50:34 +10:00
2017-11-02 11:10:55 +01:00
2018-08-24 08:22:08 +09:00
2018-07-18 01:18:05 +09:00
2017-11-17 17:45:29 -08:00
2018-08-30 12:56:40 +02:00
2018-08-09 21:51:17 +09:00
2017-11-14 18:25:40 -08:00
2018-09-30 20:14:04 +02:00
2018-07-24 16:11:07 -07:00
2017-11-17 17:45:29 -08:00
2018-07-18 01:18:05 +09:00
2018-02-06 18:32:47 -08:00
2018-06-11 09:14:08 +09:00
2018-08-24 08:22:08 +09:00
2018-08-03 00:47:00 +09:00
2018-07-06 22:04:03 +09:00
2018-08-24 08:22:08 +09:00
2018-07-06 22:04:03 +09:00
2018-08-10 20:19:58 -07:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2018-03-26 02:01:19 +09:00
2017-03-11 11:13:38 +09:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-29 22:04:12 +09:00
2018-05-29 22:04:12 +09:00
2018-09-04 14:45:18 +08:00
2018-09-01 01:21:42 +09:00
2018-08-17 16:20:27 -07:00
2018-08-23 18:48:43 -07:00
2017-09-08 10:02:55 -06:00
2018-05-04 06:21:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 08:12:09 -06:00
2018-07-18 19:32:54 -07:00
2018-07-07 17:44:52 +02:00
2017-11-02 11:10:55 +01:00