summaryrefslogtreecommitdiffstats
path: root/.pylintrc
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-04 11:18:29 +0100
committerLennart Poettering <lennart@poettering.net>2024-11-04 12:10:09 +0100
commitcb42df5310e701b751331ae62432e3fb0df2f660 (patch)
tree9d90259fd8fb3dc89669bfbef55dd86526c55d56 /.pylintrc
parentsd-daemon: count array elements in size_t (diff)
downloadsystemd-cb42df5310e701b751331ae62432e3fb0df2f660.tar.xz
systemd-cb42df5310e701b751331ae62432e3fb0df2f660.zip
sd-daemon: add fd array size safety check to sd_notify_with_fds()
The previous commit removed the UINT_MAX check for the fd array. Let's now re-add one, but at a better place, and with a more useful limit. As it turns out the kernel does not allow passing more than 253 fds at the same time, hence use that as limit. And do so immediately before calculating the control buffer size, so that we catch multiplication overflows.
Diffstat (limited to '.pylintrc')
0 files changed, 0 insertions, 0 deletions