json: add trailing NUL byte in json_dispatch_byte_array_iovec()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Jan 2024 19:44:48 +0000 (04:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Jan 2024 19:44:51 +0000 (04:44 +0900)
commit1f179b37f2de95ef4ecb61c1e566c7cd07f83afd
treef002903adcff2bf6546de8c614f3e828a70c9591
parent378712c830ad28631d4b04a013a457c151b492b5
json: add trailing NUL byte in json_dispatch_byte_array_iovec()

For safety.

Addresses https://github.com/systemd/systemd/pull/30879#discussion_r1448518226.
src/shared/json.c