[Openais] totempg assertions patch

Andrew Beekhof beekhof at gmail.com
Mon Sep 17 00:29:07 PDT 2007


On 9/16/07, Steven Dake <sdake at redhat.com> wrote:
> This patch verifies some assertions in totempg to ensure memory
> overwrites don't occur.

one of the things the crm does* is read the header, check the size of
the payload and then read the rest of the message.

this avoids the need to have a constant like MESSAGE_SIZE_MAX which,
based on experiences with heartbeat can be problematic.

if i created a patch that read mar_req_header_t and then dynamically
created enough memory for the payload, would you consider applying it?


* crm/cib/main.c:368 -> cib_ais_dispatch()


More information about the Openais mailing list