From 2d76de6cdc404d2d3031a3c78768b7c1dd4debd7 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 24 Jun 2007 11:39:16 +0000 Subject: [PATCH] allow chunksiz to reach 1 before erroring out --- mon_systrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ } -- 2.40.0