]> git.ipfire.org Git - thirdparty/systemd.git/commit
socket-util: Let's trick out ubsan when it validate struct sockaddr_un.sun_path[] 11051/head
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Dec 2018 17:21:25 +0000 (18:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 4 Dec 2018 22:28:14 +0000 (23:28 +0100)
commit085b39e9df957b4a0ae7276d22011ac5dd20bc06
tree947ae80c4b0de6055eb9bf9980df2458beeccfa6
parent836f9cfebd63aa4285c005a3ff1bd59b3315eaac
socket-util: Let's trick out ubsan when it validate struct sockaddr_un.sun_path[]

Linux is stupid and sometimes returns a "struct sockaddr_un" that is
longer than its fields, as it NUL terminates .sun_path[] even if it has
full length. ubsan detects this, rightfully. Since this is a Linux
misdesign let's trick out ubsan a bit.

Fixes: #11024
src/basic/socket-util.c