diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-05-18 09:53:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-05-18 09:53:46 +0000 |
commit | 41aa20c243f5b9d51150586651e8b5437cfdb085 (patch) | |
tree | 65f6432d89feaf324a7eddbbbd451add8f0bfd37 /sunrpc | |
parent | 92040cbc5f1a18a85735127c3677275c419674cb (diff) | |
download | glibc-41aa20c243f5b9d51150586651e8b5437cfdb085.zip glibc-41aa20c243f5b9d51150586651e8b5437cfdb085.tar.gz glibc-41aa20c243f5b9d51150586651e8b5437cfdb085.tar.bz2 |
Update.
1998-05-18 Ulrich Drepper <drepper@cygnus.com>
* iconvdata/TESTS: ISO-2022-KR has not really ASCII as a subset
(the designation sequence is disturbing).
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/svc_tcp.c | 1 | ||||
-rw-r--r-- | sunrpc/xdr_rec.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sunrpc/svc_tcp.c b/sunrpc/svc_tcp.c index 8d728bd..41f9533 100644 --- a/sunrpc/svc_tcp.c +++ b/sunrpc/svc_tcp.c @@ -387,6 +387,7 @@ svctcp_recv (xprt, msg) cd->x_id = msg->rm_xid; return (TRUE); } + cd->strm_stat = XPRT_DIED; /* XXXX */ return (FALSE); } diff --git a/sunrpc/xdr_rec.c b/sunrpc/xdr_rec.c index db5684b..f855b3d 100644 --- a/sunrpc/xdr_rec.c +++ b/sunrpc/xdr_rec.c @@ -567,6 +567,12 @@ set_input_fragment (RECSTREAM *rstrm) return FALSE; header = ntohl (header); rstrm->last_frag = ((header & LAST_FRAG) == 0) ? FALSE : TRUE; + /* + * Sanity check. Try not to accept wildly incorrect + * record sizes. + */ + if ((header & (~LAST_FRAG)) > rstrm->recvsize) + return(FALSE); rstrm->fbtbc = header & ~LAST_FRAG; return TRUE; } |