Files
systemd/src
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-26 21:08:49 +08:00
2024-04-10 09:32:04 +02:00
2024-03-20 15:13:44 +01:00
2024-04-03 11:50:25 +01:00
2024-04-08 09:22:06 +09:00
2024-02-29 21:38:03 +01:00
2024-04-03 11:50:25 +01: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-20 09:23:18 +09:00