]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-socket-util: avoid writing past the defined buffer
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 24 Oct 2019 07:15:29 +0000 (09:15 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 24 Oct 2019 13:43:59 +0000 (22:43 +0900)
commit58ce85f6a17b6db03265e6a974120b18d1c0855a
tree9edeb2aef014272253407581886097b0af089fe2
parent1048436869416d58071803e8c4fcc897b373af30
test-socket-util: avoid writing past the defined buffer

.sun_path has 108 bytes, and we'd write a string of 108 bytes + NUL.
I added this test, but I don't know what it was supposed to test. Let's
just remove.

Fixes #13713. CID#1405854.
src/test/test-socket-util.c