[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix signedness issue in private implementation of memmem().



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1168266328 0
# Node ID 037f49cd8016405d290b37a2352fef4d6663329e
# Parent  7878db2276c94bef4da8577568632a10bd527291
Fix signedness issue in private implementation of memmem().
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/tools/symbols.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 7878db2276c9 -r 037f49cd8016 xen/tools/symbols.c
--- a/xen/tools/symbols.c       Mon Jan 08 14:24:42 2007 +0000
+++ b/xen/tools/symbols.c       Mon Jan 08 14:25:28 2007 +0000
@@ -353,7 +353,7 @@ static void *memmem_pvt(void *h, size_t 
 static void *memmem_pvt(void *h, size_t hlen, void *n, size_t nlen)
 {
        char *p;
-       for (p = h; (p - (char *)h) <= (hlen - nlen); p++)
+       for (p = h; (p - (char *)h) <= (long)(hlen - nlen); p++)
                if (!memcmp(p, n, nlen)) return p;
        return NULL;
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.