sd-bus: make rqueue/wqueue sizes of type size_t
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jan 2019 17:13:03 +0000 (18:13 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 3 Feb 2020 11:41:24 +0000 (12:41 +0100)
commit6ca588f3d62ad3391d558e34a7f002c0a88698b7
tree222ea74aea93b6d561234fe77112237026fd60fb
parent3c1ccdf9a774de405ada5e4d46d3e844e66ea511
sd-bus: make rqueue/wqueue sizes of type size_t

Let's do this like we usually do and size arrays with size_t.

We already do this for the "allocated" counter correctly, and externally
we expose the queue sizes as uint64_t anyway, hence there's really no
point in usigned "unsigned" internally.

(cherry picked from commit 143d4e045a798ccc87889b2a8a60d7fbe44be441)
Related: CVE-2020-1712
src/libsystemd/sd-bus/bus-internal.h
src/libsystemd/sd-bus/sd-bus.c