[Openais] [PATCH corosync/trunk] Avoid array out of bound error.
angus salkeld
angus.salkeld at alliedtelesis.co.nz
Wed Oct 14 16:05:54 PDT 2009
On Wed, 2009-10-14 at 15:56 -0700, Steven Dake wrote:
> good for merge
>
Committed as revision 2529.
-Angus
> 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