chiark / gitweb /
sd-bus: Fix a read after free error in bus-match. (#3624) (#3625)
authorWeng Xuetian <wengxt@gmail.com>
Wed, 29 Jun 2016 20:22:12 +0000 (13:22 -0700)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000 (10:13 +0200)
commit5fe94801a659675f35b52f974942fb7ee9b8f3fc
tree1457a9b3fe460bd8e762c8d93d43ea892e579fa7
parent479020f14217990e24e588bf26d9826b18b64d8c
sd-bus: Fix a read after free error in bus-match. (#3624) (#3625)

The loop on bus_match_run should break and return immediately if
bus->match_callbacks_modified is true. Otherwise the loop may access
free'd data.
src/libelogind/sd-bus/bus-match.c