38dad4433295d583343b82aac87326d407fe2927
The protocol is that a string is serialized with the nul byte at the end, and the terminator is included in length. We'd call strndup with offset 0, length len1-1, and then a second time with offset len1, length len2-1, so in the end the check was off by one. But let's require the terminating nul too, even if we don't access it. CID #1383035.
systemd - System and Service Manager
Details
General information about systemd can be found in the systemd Wiki.
Information about build requirements are provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the HACKING file for information how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
Languages
C
88.5%
Shell
5.7%
Python
4.6%
Meson
1.1%