[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] python/xc: fix out of bounds array access
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1276604834 -3600 # Node ID b9c541d9c13822e92719ccfe77fbd0241410f2c5 # Parent 840b3f5848645fd80faf7f45409e7c48bae1b911 python/xc: fix out of bounds array access Writing a NUL terminator here isn't even necessary, since snprintf() already guarantees proper termination. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- tools/python/xen/lowlevel/xc/xc.c | 1 - 1 files changed, 1 deletion(-) diff -r 840b3f584864 -r b9c541d9c138 tools/python/xen/lowlevel/xc/xc.c --- a/tools/python/xen/lowlevel/xc/xc.c Tue Jun 15 13:26:49 2010 +0100 +++ b/tools/python/xen/lowlevel/xc/xc.c Tue Jun 15 13:27:14 2010 +0100 @@ -58,7 +58,6 @@ static PyObject *pyxc_error_to_exception snprintf(err_buf.message, sizeof(err_buf.message), "xc_interface_open failed: %s", strerror(errno)); - err_buf.message[sizeof(err_buf)-1] = 0; err_buf.code = XC_INTERNAL_ERROR; err = &err_buf; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |