[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [Patch] fix checking strtab length in xc_core.c
Hi, I don't understard the meaning of the following check in xc_core.c. Is this correct patch? Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> diff -r 9071521d4864 tools/libxc/xc_core.c --- a/tools/libxc/xc_core.c Fri Sep 07 11:39:10 2007 +0100 +++ b/tools/libxc/xc_core.c Tue Sep 11 06:13:55 2007 +0900 @@ -107,7 +107,7 @@ xc_core_strtab_get(struct xc_core_strtab if ( strtab->current + len > strtab->max ) { char *tmp; - if ( strtab->max * 2 < strtab->max ) + if ( strtab->current + len > strtab->max * 2 ) { PERROR("too long string table"); errno = ENOMEM; Best Regards, Akio Takebe Attachment:
fix_xc_core_strtab_len.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |