[Openais] corosync - glibc detected *** corosync: malloc(): memory corruption

Steven Dake sdake at redhat.com
Tue Jun 22 10:52:36 PDT 2010


On 06/22/2010 02:15 AM, Jan Friesse wrote:
> Corosync has problem with readdir_r and if pathconf function fails.
>
> Main problem is hidden in calling pathconf (internally calls statfs)
> which may fail. After this fail, newly allocated memory for readdir_r
> was smaller than expected and memory was overwritten by readdir_r.
>
> Patch removes calling of pathconf and rather use NAME_MAX constant which
> is always large enough for all file systems.
>
> Also return value of malloc SHOULD be checked.
>
> Regards,
>    Honza
>
>
>
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais
good for merge

thanks
-steve


More information about the Openais mailing list