Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 signed/unsigned mismatch.



details:   https://anonhg.NetBSD.org/src/rev/ff81f018e3a2
branches:  trunk
changeset: 1003722:ff81f018e3a2
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Fri Sep 27 08:12:01 2019 +0000

description:
signed/unsigned mismatch.

diffstat:

 sys/compat/netbsd32/netbsd32_socket.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c8aeb0500535 -r ff81f018e3a2 sys/compat/netbsd32/netbsd32_socket.c
--- a/sys/compat/netbsd32/netbsd32_socket.c     Fri Sep 27 07:20:07 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_socket.c     Fri Sep 27 08:12:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_socket.c,v 1.50 2019/09/26 01:32:09 christos Exp $    */
+/*     $NetBSD: netbsd32_socket.c,v 1.51 2019/09/27 08:12:01 mlelstv Exp $     */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_socket.c,v 1.50 2019/09/26 01:32:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_socket.c,v 1.51 2019/09/27 08:12:01 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -403,7 +403,7 @@
                /*
                 * Sanity check the control message length.
                 */
-               if (cmsg32.cmsg_len > resid ||
+               if (cmsg32.cmsg_len > (size_t)resid ||
                    cmsg32.cmsg_len < sizeof(cmsg32)) {
                        error = EINVAL;
                        goto failure;



Home | Main Index | Thread Index | Old Index