allow chunksiz to reach 1 before erroring out

This commit is contained in:
Todd C. Miller
2007-06-24 11:39:16 +00:00
parent b3b905ba5e
commit 2d76de6cdc

View File

@@ -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 */
}