diff options
author | hongjinghao <hongjinghao@huawei.com> | 2024-01-04 15:15:53 +0800 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2024-01-29 13:31:57 +0000 |
commit | c3b1e4daa5b0ed5729f0f12bc6a3ba50a391f7f6 (patch) | |
tree | 7cd378c6c27285e724fc66f8c96781ba247a8f02 /NEWS | |
parent | 00449e75434c9c6042e00303fe61a10040024164 (diff) |
Do not crash when reloading configuration with > 128 dirs
When `dbus-daemon` sets more than 128 directories for `XDG_DATA_DIRS`,
none of the elements in `new_dirs` will be `NULL`, which resulted in
these loops reading out-of-bounds (undefined behaviour). In practice
this led to a crash.
To avoid this, make sure to stop iteration at the end of the array.
[smcv: Expanded commit message]
Resolves: dbus/dbus#481
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions