[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/4] minios: correct char array allocation for xenbus paths
Matt Wilson, le Fri 06 Sep 2013 12:52:04 -0700, a écrit : > The char arrays used to hold xenbus paths have historically been > allocated by manually counting the length longest string constants > included in constructing the path. This has led to improperly sized > buffers, both too large (with little consequence) and too small (which > obviously causes problems). This patch corrects the instances where > the length was incorrectly calculated by using strlen() on the longest > string constant used in building a xenbus path. > > A follow-on clean-up patch will change all instances to use strlen(). > > Signed-off-by: Ben Cressey <bcressey@xxxxxxxxxx> > Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> > Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> Acked-By: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> Matt Wilson, le Fri 06 Sep 2013 12:52:05 -0700, a écrit : > From: Matt Wilson <msw@xxxxxxxxxx> > > This patch cleans up instances of char array allocation where string > lengths were manually counted to use strlen() instead. There are no > functional changes in this patch. > > Signed-off-by: Matt Wilson <msw@xxxxxxxxxx> > Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> > Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> Acked-By: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |