]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemctl/systemctl.c
systemd: Fix busctl crash on aarch64 when setting output table format
authorAlin Popa <alin.popa@bmw.de>
Fri, 14 Feb 2020 08:33:43 +0000 (09:33 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 15 Feb 2020 17:09:26 +0000 (02:09 +0900)
commitad5555b42e9f6c01314df9e11432f0bf90cd909d
tree5b74c13aca0c5768f898cd9c6ce84efc09a5a7f4
parentbec31cf5f0037dd049299e8665e03fc74024e357
systemd: Fix busctl crash on aarch64 when setting output table format

The enum used for column names is integer type while table_set_display() is parsing
arguments on size_t alignment which may result in assert in table_set_display() if
the size between types missmatch. This patch cast the enums to size_t.
It also fixes all other occurences for table_set_display() and
table_set_sort().
src/analyze/analyze-security.c
src/analyze/analyze.c
src/busctl/busctl.c
src/mount/mount-tool.c
src/network/networkctl.c
src/partition/repart.c
src/systemctl/systemctl.c
src/userdb/userdbctl.c