|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Fix random segfaults in with xm top
Jerone Young wrote: But name is a string and is being accessed as a string :-) You're allocating 1 byte for it so when printf attempts to print out the string it will overrun the buffer.On Wed, 2005-11-23 at 17:40 -0600, Anthony Liguori wrote:Unfortunately, this patch introduces another potential segfault from an unterminated string. See below for how to fix.Actually I believe this is not true as I am assigning a character and not a character string. You do not need to null terminate a character. Doesn't really matter both accomplish the same thing. Using the function is better anyway. Regards, Anthony Liguori Jerone Young wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |