[Openais] corosync trunk - fix improper memmove length calculation

Steven Dake sdake at redhat.com
Thu Apr 29 22:37:50 PDT 2010


When a message is retransmitted, a memmove is used to remove the entry
that was retransmitted from the list.  In the case that the retransmit
list is large 20+ entries, it will memmove from 20 to 19, for a range of
30.  Instead it should memmove from 20 to 19 for a range of 11. The
extra memmove corrupts the stack and corosync coredumps during this very
lossy network setup.

Regards
-steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corosync-trunk-fix-improper-memmove-length-calculation.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20100429/a26a230e/attachment.bin 


More information about the Openais mailing list