allow chunksiz to reach 1 before erroring out
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user