Valentine Krasnobaeva
44f98f1747
BUG/MINOR: log: fix gcc warn about truncating NUL terminator while init char arrays
...
gcc 15 throws such kind of warnings about initialization of some char arrays:
src/log.c:181:33: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available) [-Werror=unterminated-string-initialization]
181 | const char sess_term_cond[16] = "-LcCsSPRIDKUIIII"; /* normal, Local, CliTo, CliErr, SrvTo, SrvErr, PxErr, Resource, Internal, Down, Killed, Up, -- */
| ^~~~~~~~~~~~~~~~~~
src/log.c:182:33: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (9 chars into 8 available) [-Werror=unterminated-string-initialization]
182 | const char sess_fin_state[8] = "-RCHDLQT"; /* cliRequest, srvConnect, srvHeader, Data, Last, Queue, Tarpit */
So, let's make it happy by not giving the sizes of these char arrays
explicitly, thus he can accomodate there NUL terminators.
Reported in GitHub issue #2910 .
This should be backported up to 2.6.
2025-03-27 11:52:33 +01:00
..
2024-11-18 15:15:54 +01:00
2024-11-22 09:42:49 +01:00
2025-02-20 10:00:32 +01:00
2024-10-18 14:30:24 +02:00
2025-02-06 16:55:37 +01:00
2025-03-12 18:16:14 +01:00
2024-10-18 18:28:39 +02:00
2024-12-17 17:42:11 +01:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2024-09-15 23:44:59 +02:00
2025-01-20 17:53:55 +01:00
2025-02-26 13:00:18 +01:00
2025-03-12 10:49:36 +01:00
2025-03-25 16:30:35 +01:00
2025-02-17 18:26:37 +01:00
2025-03-07 16:23:29 +01:00
2025-03-14 18:30:30 +01:00
2024-09-30 11:36:39 +02:00
2025-01-28 12:49:41 +01:00
2025-01-29 17:55:18 +01:00
2025-03-18 17:36:02 +01:00
2025-02-21 11:22:35 +01:00
2025-01-02 14:31:07 +01:00
2025-02-26 13:00:18 +01:00
2025-03-17 14:53:36 +01:00
2025-03-14 18:30:30 +01:00
2025-03-03 12:43:32 +01:00
2024-11-18 18:50:02 +01:00
2024-07-09 16:46:38 +02:00
2024-08-21 17:36:58 +02:00
2024-11-18 19:07:05 +01:00
2025-01-07 16:42:38 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2024-05-24 12:07:18 +02:00
2024-05-24 12:07:18 +02:00
2024-11-29 10:18:07 +01:00
2024-11-15 15:39:00 +01:00
2025-01-27 11:11:43 +01:00
2025-02-26 13:00:18 +01:00
2025-02-17 16:16:29 +01:00
2024-09-02 15:50:25 +02:00
2025-02-22 11:32:40 +01:00
2025-02-06 11:19:32 +01:00
2025-02-06 17:01:15 +01:00
2025-02-21 18:26:29 +01:00
2024-10-29 12:14:50 +01:00
2024-11-07 18:17:03 +01:00
2025-02-17 16:37:53 +01:00
2024-09-16 22:55:25 +02:00
2025-02-24 09:39:57 +01:00
2024-05-16 10:31:17 +02:00
2025-03-07 12:06:26 +01:00
2025-03-25 16:30:35 +01:00
2025-01-28 12:49:41 +01:00
2025-03-19 17:03:28 +01:00
2025-03-07 12:06:26 +01:00
2024-11-26 16:12:05 +01:00
2025-02-03 17:09:48 +01:00
2024-10-17 12:16:35 +02:00
2024-11-06 10:06:52 +01:00
2024-10-17 17:25:06 +02:00
2024-12-11 10:00:01 +01:00
2025-01-03 10:10:09 +01:00
2024-11-19 15:20:02 +01:00
2024-11-19 15:29:40 +01:00
2025-01-31 15:51:51 +01:00
2025-03-17 18:06:34 +01:00
2024-07-26 16:59:00 +02:00
2025-03-25 18:01:01 +01:00
2025-01-28 12:49:41 +01:00
2025-02-12 11:48:10 +01:00
2025-01-28 12:49:41 +01:00
2025-01-28 12:49:41 +01:00
2024-03-29 17:08:37 +01:00
2025-03-18 17:38:04 +01:00
2024-11-21 19:55:21 +01:00
2025-01-23 17:40:48 +01:00
2025-03-27 11:52:33 +01:00
2024-04-13 08:43:12 +02:00
2024-11-15 15:39:58 +01:00
2024-11-26 16:12:05 +01:00
2024-08-30 14:58:59 +02:00
2025-02-28 16:07:05 +01:00
2025-02-28 17:31:20 +01:00
2025-03-20 08:36:06 +01:00
2025-01-31 10:41:50 +01:00
2025-03-20 18:18:52 +01:00
2025-02-20 11:56:27 +01:00
2024-11-19 14:13:30 +01:00
2025-01-07 16:42:38 +01:00
2024-12-10 08:05:34 +01:00
2024-11-29 07:22:25 +01:00
2024-12-05 12:15:24 +01:00
2025-03-25 18:01:01 +01:00
2025-03-24 10:01:46 +01:00
2025-03-03 04:05:47 +01:00
2024-11-25 15:20:24 +01:00
2024-08-30 18:53:49 +02:00
2024-08-21 17:37:46 +02:00
2024-10-29 12:14:50 +01:00
2025-02-21 07:59:08 +01:00
2024-08-30 18:53:49 +02:00
2025-03-25 18:01:01 +01:00
2025-03-07 12:06:26 +01:00
2025-02-19 11:03:40 +01:00
2024-05-16 10:31:17 +02:00
2025-01-28 17:44:54 +01:00
2025-01-23 14:49:35 +01:00
2025-03-24 10:01:46 +01:00
2024-12-13 14:42:43 +01:00
2025-01-30 17:19:38 +01:00
2025-01-30 17:19:38 +01:00
2025-01-23 17:40:48 +01:00
2024-09-03 17:49:21 +02:00
2024-11-26 14:55:30 +01:00
2025-03-24 10:01:46 +01:00
2025-03-07 12:06:26 +01:00
2025-02-14 09:00:05 +01:00
2025-01-31 15:34:30 +01:00
2025-01-23 17:41:07 +01:00
2024-10-04 17:56:45 +02:00
2024-08-30 17:04:09 +02:00
2025-01-27 11:11:43 +01:00
2025-01-23 14:49:35 +01:00
2024-12-17 17:47:57 +01:00
2024-10-17 15:04:06 +02:00
2024-04-26 10:20:57 +02:00
2024-10-09 17:47:16 +02:00
2024-10-01 16:19:25 +02:00
2024-08-30 17:04:09 +02:00
2025-03-25 16:30:35 +01:00
2024-10-04 17:56:45 +02:00
2025-03-24 10:01:46 +01:00
2025-01-31 10:41:50 +01:00
2025-01-06 09:08:38 +01:00
2024-07-24 17:59:03 +02:00
2024-11-18 16:11:55 +01:00
2024-12-11 10:00:01 +01:00
2025-03-18 17:36:02 +01:00
2024-10-29 12:14:37 +01:00
2024-05-21 17:55:03 +02:00
2025-02-21 17:41:38 +01:00
2025-02-21 11:22:35 +01:00
2024-08-30 18:53:49 +02:00
2024-10-29 12:15:24 +01:00
2025-01-31 10:41:50 +01:00
2025-03-19 18:08:40 +01:00
2025-02-07 20:56:42 +01:00
2025-02-17 18:26:37 +01:00
2025-02-13 17:44:00 +01:00
2025-01-07 15:19:42 +01:00
2024-08-26 15:17:40 +02:00
2025-01-31 10:41:50 +01:00
2024-12-16 14:54:53 +01:00
2024-11-19 16:44:51 +01:00
2024-12-10 16:19:33 +01:00
2025-02-06 17:19:49 +01:00
2025-03-21 17:05:26 +01:00
2025-03-21 17:05:02 +01:00
2025-01-31 10:41:50 +01:00
2025-01-16 11:50:33 +01:00
2025-03-18 11:43:52 +01:00
2024-11-25 08:09:09 +01:00
2025-02-21 18:31:46 +01:00
2024-10-04 21:38:14 +02:00
2025-02-03 17:09:48 +01:00
2025-03-04 18:57:29 +01:00
2025-02-03 18:46:41 +01:00
2025-03-14 18:33:16 +01:00
2025-03-19 17:59:31 +01:00
2025-01-10 14:50:59 +01:00
2024-11-14 15:03:38 +01:00
2024-07-18 13:29:52 +02:00
2024-09-15 23:51:51 +02:00
2025-01-20 17:53:55 +01:00
2025-02-24 13:37:52 +01:00
2025-02-18 10:43:56 +01:00