WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix signedness issue in private implement

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix signedness issue in private implementation of memmem().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 Jan 2007 04:00:28 -0800
Delivery-date: Wed, 10 Jan 2007 04:01:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix signedness issue in private implementation of memmem()., Xen patchbot-unstable <=