summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-289-9/+9
|
* Add support for the RPC 64-bit integer type ``hyper''.obrien1998-09-081-1/+57
|
* Change the sanity test here. It's not correct to assume that the recordwpaul1998-05-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | size we receive here should fit into the receive buffer. Unfortunately, there's no 100% foolproof way to distinguish a ridiculously large record size that a client actually meant to send us from a ridiculously large record size that was sent as a spoof attempt. The one value that we can positively identify as bogus is zero. A zero-sized record makes absolutely no sense, and sending an endless supply of zeroes will cause the server to loop forever trying to fill its receive buffer. Note that the changes made to readtcp() make it okay to revert this sanity test since the deadlock case where a client can keep the server occupied forever in the readtcp() select() loop can't happen anymore. This solution is not ideal, but is relatively easy to implement. The ideal solution would be to re-arrange the way dispatching is handled so that the select() loop in readtcp() can be eliminated, but this is difficult to implement. I do plan to implement the complete solution eventually but in the meantime I don't want to leave the RPC library totally vulnerable. That you very much Sun, may I have another.
* Patch RPC library to avoid possible denial of service attacks as describedwpaul1998-05-151-1/+7
| | | | | | | | | | | | recently in BUGTRAQ. The set_input_fragment() routine in the XDR record marking code blindly trusts that the first two bytes it sees will in fact be an actual record header and that the specified size will be sane. In fact, if you just telnet to a listening port of an RPC service and send a few carriage returns, set_input_fragment() will obtain a ridiculously large record size and sit there for a long time trying to read from the network. A sanity test is required: if the record size is larger than the receive buffer, punt.
* Cast a pointer to a long, not an int and make the arg passed to the functionjb1998-05-111-2/+2
| | | | a long too (it does have a proper prototype).
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-3/+2
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Restore Id.wpaul1997-05-281-0/+1
| | | | Pointed out by: bde
* Resolve conflicts.wpaul1997-05-289-11/+10
|
* This commit was generated by cvs2svn to compensate for changes in r26216,wpaul1997-05-281-0/+163
| | | | which included commits to RCS files with non-trunk default branches.
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-2/+6
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Revert $FreeBSD$ to $Id$peter1997-02-228-8/+8
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-148-8/+8
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* - Missing prototypes, including pointers to functionspeter1996-12-307-150/+375
| | | | | | | | - 64 bit long type safe (wire protocols specified in explicit sized types) - Support systems that don't do unaligned accesses - Support for explicit int16 and int32 sizes in xdr Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* xdr manpage linkspeter1996-12-301-0/+33
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-051-1/+3
|
* Minor cleanup of the rpc man pages to silence manck.mpp1996-02-121-2/+2
|
* minor cleanup, #includes.phk1995-10-225-6/+11
|
* Confirmed to work by: rcarter@geli.com (Russell Carter)bde1995-07-221-4/+1
| | | | | Enable xdr_float.c. I believe it works on i386's although it isn't portable enough to be in a machine-independent directory.
* Remove trailing whitespace.rgrimes1995-05-308-62/+62
|
* More directory cleanup after YP merge.wollman1994-08-072-7/+4
|
* Moving RPC stuff into libc, part 2.wollman1994-08-079-0/+2947
OpenPOWER on IntegriCloud