Re: [systemd-devel] [PATCH v2] rtnl: fix memory corruptions after realloc

2014-01-01 Thread Tom Gundersen
On Wed, Jan 1, 2014 at 2:18 AM, Zbigniew Jędrzejewski-Szmek wrote: > struct sd_rtnl_message would keep two additional pointers into the hdr > field. Every time hdr was realloced, those pointers should be adjusted, > but weren't. Or rather, only one of the two were adjusted, right? > It seems les

[systemd-devel] [PATCH v2] rtnl: fix memory corruptions after realloc

2013-12-31 Thread Zbigniew Jędrzejewski-Szmek
struct sd_rtnl_message would keep two additional pointers into the hdr field. Every time hdr was realloced, those pointers should be adjusted, but weren't. It seems less error-prone to keep offsets instead. --- Previous version was missing some hunks... Zbyszek src/libsystemd-rtnl/rtnl-message.c