[Openais] [PATCH corosync/trunk] Avoid array out of bound error.
Steven Dake
sdake at redhat.com
Wed Oct 14 15:56:28 PDT 2009
good for merge
thanks
-steve
On Thu, 2009-10-15 at 11:57 +1300, angus salkeld wrote:
> Avoid array out of bound error.
>
> thanks Steve for debugging.
> (sees to only crash on x86_64)
>
> -Angus
>
> Index: exec/coroipcs.c
> ===================================================================
> --- exec/coroipcs.c (revision 2528)
> +++ exec/coroipcs.c (working copy)
> @@ -1457,7 +1457,7 @@
>
> /* copy the name */
> strncpy (out_name, name, name_len);
> - out_name[name_len] = '\0';
> + out_name[name_len - 1] = '\0';
> return out_name;
> }
>
>
>
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais
More information about the Openais
mailing list