diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2016-06-07 10:38:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-07 10:38:33 +0200 |
commit | 82e4eda664d40ef60829e27d84b1610c2f4070cd (patch) | |
tree | 2343814aeed404b9f112c77fd04069bccb5d7b5f /src/getty-generator | |
parent | 138f4c69064504bf7ef83cc8a53133f007ad84d6 (diff) |
sd-netlink: fix deep recursion in message destruction (#3455)
On larger systems we might very well see messages with thousands of parts.
When we free them, we must avoid recursing into each part, otherwise we
very likely get stack overflows.
Fix sd_netlink_message_unref() to use an iterative approach rather than
recursion (also avoid tail-recursion in case it is not optimized by the
compiler).
Diffstat (limited to 'src/getty-generator')
0 files changed, 0 insertions, 0 deletions