diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2005-08-09 08:33:27 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2005-08-09 08:33:27 +0000 |
| commit | 3ad7e6704516975194de8084d145a5c035d8a76c (patch) | |
| tree | b71f3cd976a2eab50fdf6656d6e24da00f8a7c32 /usr.sbin | |
| parent | f79293da85e24cc97ff335b37b4bb6fbb0005add (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/portsnap/phttpget/phttpget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/portsnap/phttpget/phttpget.c b/usr.sbin/portsnap/phttpget/phttpget.c index a68f60f2bc1a4..584ce51118c0a 100644 --- a/usr.sbin/portsnap/phttpget/phttpget.c +++ b/usr.sbin/portsnap/phttpget/phttpget.c @@ -403,7 +403,7 @@ main(int argc, char *argv[]) /* Compute the length */ while (isdigit(*hln)) { - if (contentlength > INT_MAX / 10) { + if (contentlength >= OFF_MAX / 10) { /* Nasty people... */ goto conndied; } @@ -488,7 +488,7 @@ main(int argc, char *argv[]) clen = 0; while (isxdigit(*hln)) { - if (clen > INT_MAX / 16) { + if (clen >= OFF_MAX / 16) { /* Nasty people... */ goto conndied; } @@ -528,7 +528,7 @@ main(int argc, char *argv[]) * Read everything until the server closes the * socket. */ - error = copybytes(sd, fd, INT_MAX, resbuf, + error = copybytes(sd, fd, OFF_MAX, resbuf, &resbuflen, &resbufpos); if (error == -1) goto conndied; |
