]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/bus-unit-util: stop unsing strndupa 37665/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Jul 2025 07:51:00 +0000 (09:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Jul 2025 19:03:26 +0000 (21:03 +0200)
commit01383af1c12bb4b89d24b783ec54dcf1cf4cbb9f
tree4e759bc3cf735ebbce89dcfbd51806c2a1b49c10
parentd971936bf4c39259774e363148c80dea5c93243d
shared/bus-unit-util: stop unsing strndupa

Those are user-controlled strings, so let's use heap allocations in the usual
fashion. (Though, with strndupa_safe, the allocations were bounded anyway, so
ultimately this doesn't matter.)
src/shared/bus-unit-util.c