Lennart Poettering
e1771c8ee6
sd-journal: make sure sd_journal_add_match() also accepts SIZE_MAX as size
...
In many of our internal functions that take a pointer + a size we have
introduced the rule that SIZE_MAX as size means: take strlen().
sd_journal_add_match() has something similar, but the special value is
0, not SIZE_MAX. This is a bit ugly, since a zero size data block is
theoretically fine. The only reason sd_journal_add_match() gets away
with using this special value is because valid matches must consist of
at least 2 chars, hence cannot be zero.
But let's make this more robust and less surprising when compared to the
rest of our code, and *also* accept SIZE_MAX to mean strlen().
No actual code changes, just some clean-up.
2024-04-10 16:54:03 +09:00
..
2024-03-27 22:25:45 +00:00
2024-04-07 11:15:19 +02:00
2024-04-04 21:29:57 +01:00
2024-04-09 21:19:15 +02:00
2024-02-28 15:33:51 +01:00
2024-03-26 09:26:59 +00:00
2024-03-26 21:08:49 +08:00
2024-04-10 09:32:04 +02:00
2024-04-10 16:54:03 +09:00
2024-03-11 18:13:57 +00:00
2024-02-20 16:50:04 +01:00
2024-04-05 01:12:42 +08:00
2024-04-04 16:17:38 +02:00
2024-04-06 16:08:24 +02:00
2024-03-07 18:47:50 +01:00
2024-03-04 19:53:51 +00:00
2024-03-20 15:18:21 +01:00
2024-02-13 13:59:27 -05:00
2024-03-11 15:34:05 +08:00
2024-04-09 09:40:21 +02:00
2024-04-05 01:49:20 +09:00
2024-03-20 15:13:44 +01:00
2024-04-03 11:50:25 +01:00
2024-04-10 16:54:03 +09:00
2024-03-26 23:54:46 +09:00
2024-04-04 02:45:39 +09:00
2024-04-10 16:54:03 +09:00
2024-04-09 21:19:15 +02:00
2024-04-09 21:19:15 +02:00
2024-03-20 15:13:44 +01:00
2024-04-07 23:32:18 +01:00
2024-03-24 19:19:12 +08:00
2024-02-28 16:17:40 +01:00
2024-04-04 18:16:45 +02:00
2024-04-08 09:22:06 +09:00
2024-04-09 21:19:15 +02:00
2024-04-09 21:19:15 +02:00
2024-04-08 20:14:38 +08:00
2024-02-28 15:38:00 +01:00
2024-02-28 15:38:00 +01:00
2024-03-20 15:18:21 +01:00
2024-04-03 11:50:25 +01:00
2024-02-21 14:45:30 +01:00
2024-03-28 14:20:20 +00:00
2024-03-08 08:25:07 +01:00
2024-03-10 23:11:47 +08:00
2024-04-09 09:39:49 +02:00
2024-02-29 21:38:03 +01:00
2024-04-07 10:20:04 +01:00
2024-04-10 16:54:03 +09:00
2024-04-06 02:16:54 +08:00
2024-04-02 18:08:22 +02:00
2024-04-05 01:49:20 +09:00
2024-04-02 18:08:30 +02:00
2024-04-07 20:02:40 +08:00
2024-04-05 05:57:14 +09:00
2024-04-04 04:04:14 +09:00
2024-04-03 11:50:25 +01:00
2024-03-07 02:01:57 +08:00
2024-04-09 21:19:15 +02:00
2024-03-28 09:55:11 +09:00
2024-04-03 11:50:25 +01:00
2024-04-03 11:50:25 +01:00
2024-03-17 13:34:51 +01:00
2024-02-23 09:35:12 -08:00
2024-04-09 21:19:15 +02:00
2024-03-12 11:36:08 +01:00
2024-04-08 20:24:23 +08:00
2024-02-12 12:04:18 +01:00
2024-02-20 09:23:18 +09:00
2024-02-21 14:01:25 +01:00
2024-04-09 06:47:48 +08:00
2024-03-07 18:49:44 +01:00