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 > [email protected] > https://lists.linux-foundation.org/mailman/listinfo/openais good for merge
thanks -steve _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
