]> git.ipfire.org Git - thirdparty/systemd.git/commit
pull-job: always implicitly NUL terminate downloaded payload stored in memory
authorLennart Poettering <lennart@poettering.net>
Wed, 5 Nov 2025 15:48:24 +0000 (16:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 8 Nov 2025 08:27:46 +0000 (09:27 +0100)
commitbf51a545a4fd60ce27da74bed98c139157fb1984
tree6d5c5711c78c6ffc3ad25c59d89da6f435a03cb3
parentf8293452b65551c75534a35af8e6202a45837299
pull-job: always implicitly NUL terminate downloaded payload stored in memory

Just as a safety measure, let's always NUL terminate what we are
downloading, maybe future code will parse it as string, and is sloppy by
accident.

(We have similar logic in read_full_file(), and I think it's a really
good rule, to always implicitly NUL terminate blobs we acquire that
might very well be used as text later on)
src/import/pull-job.c