From: Todd C. Miller Date: Sun, 24 Jun 2007 11:39:16 +0000 (+0000) Subject: allow chunksiz to reach 1 before erroring out X-Git-Tag: SUDO_1_7_0~522 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d76de6cdc404d2d3031a3c78768b7c1dd4debd7;p=sudo allow chunksiz to reach 1 before erroring out --- diff --git a/mon_systrace.c b/mon_systrace.c index 810c83ebc..051df6a63 100644 --- a/mon_systrace.c +++ b/mon_systrace.c @@ -496,7 +496,7 @@ read_string(fd, pid, addr, buf, bufsiz) addr += nread; bufsiz -= nread; } else { - if (errno != EINVAL || chunksiz == 4) + if (errno != EINVAL || chunksiz == 1) return(-1); chunksiz >>= 1; /* chunksiz too big, halve it */ }