lkml.org 
[lkml]   [2003]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patchset] Fix sign handling bugs in 2.5 -- 4/5; tun

--- linux-2.5.70/drivers/net/tun.c Tue May 27 06:30:39 2003
+++ shb-tun-2.5.70/drivers/net/tun.c Wed Jun 11 16:37:46 2003
@@ -185,7 +185,7 @@
size_t len = count;

if (!(tun->flags & TUN_NO_PI)) {
- if ((len -= sizeof(pi)) < 0)
+ if ((len -= sizeof(pi)) > len)
return -EINVAL;

memcpy_fromiovec((void *)&pi, iv, sizeof(pi));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.034 / U:7.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site