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)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Jan 2024 14:21:04 +0000 (15:21 +0100)
commit181541d01e169c694c3a5ebdeb8921d19c4505b1
tree6cdd568e0953dd6d7fe9f47e7bed96a1ee848d05
parent20e554f1f76330aad7ad2644e7c6f472a3c2ae70
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().

Change-Id: Ie225491ae3f9752183d6ea7993d02ef450ed6ab6
src/analyze/analyze-security.c
src/analyze/analyze.c
src/busctl/busctl.c
src/network/networkctl.c