diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-03-06 09:43:09 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-03-06 14:24:15 +0100 |
commit | d49dc7bbe7538567b1fe04f5d1e08f0376193ef6 (patch) | |
tree | 6606a7a91e2ad6311c8978b61413b22df2e1ff34 /src/resolve/resolved-dns-scope.h | |
parent | udev: use strndupa_safe() rather than strndupa() (diff) | |
download | systemd-d49dc7bbe7538567b1fe04f5d1e08f0376193ef6.tar.xz systemd-d49dc7bbe7538567b1fe04f5d1e08f0376193ef6.zip |
string-util: allow taking SIZE_MAX as size to shorten to
This is useful for two reasons:
1. it addresses a potential overflow in a graceful way
2. Gives callers the ability to just pass SIZE_MAX for a NOP
Prompted by: #31341
Diffstat (limited to 'src/resolve/resolved-dns-scope.h')
0 files changed, 0 insertions, 0 deletions