Commit Graph

1876 Commits

Author SHA1 Message Date
ru
78fa3f18a6 More potential buffer overflow fixes.
o Fixed `nfrontp' calculations in output_data().  If `remaining' is
  initially zero, it was possible for `nfrontp' to be decremented.

Noticed by:	dillon

o Replaced leaking writenet() with output_datalen():

:  * writenet
:  *
:  * Just a handy little function to write a bit of raw data to the net.
:  * It will force a transmit of the buffer if necessary
:  *
:  * arguments
:  *    ptr - A pointer to a character string to write
:  *    len - How many bytes to write
:  */
: 	void
: writenet(ptr, len)
: 	register unsigned char *ptr;
: 	register int len;
: {
: 	/* flush buffer if no room for new data) */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 	if ((&netobuf[BUFSIZ] - nfrontp) < len) {
: 		/* if this fails, don't worry, buffer is a little big */
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 		netflush();
: 	}
:
: 	memmove(nfrontp, ptr, len);
: 	nfrontp += len;
:
: }  /* end of writenet */

What an irony!  :-)

o Optimized output_datalen() a bit.
2001-07-20 12:02:30 +00:00
obrien
f0cd4bbae2 This merges in the changes from the 2.11.2 release to the FSF anoncvs
19-July-2001 snapshot.
2001-07-20 03:48:47 +00:00
obrien
03435b5fef This commit was generated by cvs2svn to compensate for changes in r80016,
which included commits to RCS files with non-trunk default branches.
2001-07-20 03:29:51 +00:00
obrien
4807ba9376 Import of Binutils from the FSF 2.11 branch [checked out 19-July-2001].
This fixes an annoying `ld' bug.
2001-07-20 03:29:51 +00:00
obrien
b98306d661 Update for the Bintuils 2.11.2 import. 2001-07-20 02:56:57 +00:00
ru
f6e041ebe5 vsnprintf() can return a value larger than the buffer size.
Submitted by:	assar
Obtained from:	OpenBSD
2001-07-19 18:58:31 +00:00
ru
bea326ca5f Fixed the exploitable remote buffer overflow.
Reported on:	bugtraq
Obtained from:	Heimdal, NetBSD
Reviewed by:	obrien, imp
2001-07-19 17:48:57 +00:00
obrien
2558190989 This commit was generated by cvs2svn to compensate for changes in r79971,
which included commits to RCS files with non-trunk default branches.
2001-07-19 16:26:14 +00:00
obrien
3b6e1b54e4 Import of LukeM's ftp client, version 1.5. 2001-07-19 16:26:14 +00:00
obrien
8db51d4e2a This commit was generated by cvs2svn to compensate for changes in r79968,
which included commits to RCS files with non-trunk default branches.
2001-07-19 16:25:08 +00:00
obrien
e4751f9e00 Import of LukeM's ftpd version 1.1. 2001-07-19 16:25:08 +00:00
dd
f5cda9b30c Fix an underflow resulting from the assumption !O_ISSET(sp, O_LEFTRIGHT)
(ironically, the assumption is in a code block which is conditional on its
converse).  This isn't strictly the correct fix; it's more of a workaround
to prevent an infinite loop.  The correct fix (see
ports/editors/nvi-devel/files/patch-vi-relative r1.1) would take a file off
the vendor branch, but since the result for this version of nvi is
identical, this route was elected.

PR:		28687
Approved by:	-developers
2001-07-19 11:02:11 +00:00
ru
b6103b50fa This commit was generated by cvs2svn to compensate for changes in r79847,
which included commits to RCS files with non-trunk default branches.
2001-07-18 06:48:31 +00:00
ru
213982a500 From ChangeLog:
: 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
:
:	* tmac/groff_mdoc.man: Document new -width and -column syntax.
:	Some other minor fixes.
:	* tmac/an-old.tmac: Add `AT' and `UC' macros.
2001-07-18 06:48:31 +00:00
obrien
0f670892ec Connect std{in,out,err} to *something* so that "hooks" scripts that write
to std{err,out} will not spam /etc/resolv.conf.

Ted Lemon fixed the problem in version 3 of the client, but only for the
pre-daemonized case.  Thanks to Brian for pointing that out and helping
to make our future dhclient (v3) better.

Submitted by:	brian
2001-07-16 01:56:48 +00:00
markm
a0c993a18b Fix SHA1 hashing. 2001-07-14 08:30:54 +00:00
markm
ddfefdb7a4 Usse a better method to get a user's credentials, as uid's may be
legally duplicated.

Requested by:	ache
2001-07-14 08:29:19 +00:00
ru
7d7d18d267 Import latest mdoc(7) fixes of mine.
Fold -xwidth functionality into -width.  .Bl now tests whether
string immediately following a leading dot starts with a valid
macro name.

Added similar functionality to the -column list's column width
specifiers.  For example, the following now works as expected:

.Bl -column ".Va hw.crusoe.percentage" ".Vt integer" "Changeable"
.It Sy "Name\tType\tChangeable\tDescription"
.It Va hw.crusoe.longrun Ta Vt integer Ta yes Ta "LongRun mode:"
.It Ta Ta Ta "0: minimum frequency mode"
.It Ta Ta Ta "1: power-saving mode"
.It Ta Ta Ta "2: performance mode"
.It Ta Ta Ta "3: maximum frequency mode"
.It Va hw.crusoe.frequency Ta Vt integer Ta no Ta "Current frequency (MHz)."
.It Va hw.crusoe.voltage Ta Vt integer Ta no Ta "Current voltage (mV)."
.It Va hw.crusoe.percentage Ta Vt integer Ta no Ta "Processing performance (%)."
.El

This is especially useful for groff devices with variable width
fonts, like -Tps or -TX100.
2001-07-13 09:06:00 +00:00
ru
3802adb7c9 This commit was generated by cvs2svn to compensate for changes in r79655,
which included commits to RCS files with non-trunk default branches.
2001-07-13 09:06:00 +00:00
ru
6e374cb761 This page is in man(7) format. 2001-07-13 08:06:08 +00:00
obrien
f720d504e3 libiberty file list for the 11-July-2000 import. 2001-07-12 19:03:33 +00:00
ru
7a3ef67d9f Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:29:59 +00:00
ru
cbeacd77fe Fixed warning:
bc.1:643: warning: numeric expression expected (got `e')
2001-07-12 07:35:06 +00:00
ru
056c1e623a Merge Groff 1.17.2 changes. 2001-07-10 17:15:31 +00:00
ru
50cefe1ef6 Use stock (FSF) version of this file. 2001-07-10 17:14:46 +00:00
ru
f476c49e72 Removed files not present in v1.17.2 import. 2001-07-10 17:10:51 +00:00
ru
1a7c31f5bc This commit was generated by cvs2svn to compensate for changes in r79546,
which included commits to RCS files with non-trunk default branches.
2001-07-10 17:10:51 +00:00
ru
8d6dea3a55 Virgin import of FSF groff v1.17.2 2001-07-10 17:09:00 +00:00
ru
b34b0be641 This commit was generated by cvs2svn to compensate for changes in r79543,
which included commits to RCS files with non-trunk default branches.
2001-07-10 17:09:00 +00:00
ru
d177b65ce4 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
obrien
734c642db4 It is just stupid to have to do ``<ESC>!rm -f %'' to write a file you own.
So lets stop that nonsense and allow `w!' to do something useful.

Submitted by:	green
2001-07-09 04:11:33 +00:00
ru
afc184ee2b mdoc(7) police: merge all fixes from non-crypto version. 2001-07-05 14:08:12 +00:00
ru
15c82fa30b MF non-crypto: 1.13: document -u in usage. 2001-07-05 14:06:27 +00:00
kris
de0553e54c Unbreak "paranoid" host checking, which was broken with the IPv6 code
import.

Submitted by:	Tony Finch <dot@dotat.at>
2001-07-04 20:16:18 +00:00
obrien
db39446d01 Import of GNU Binutils version 2.11.2. 2001-06-26 18:26:26 +00:00
obrien
63eccdc512 This commit was generated by cvs2svn to compensate for changes in r78844,
which included commits to RCS files with non-trunk default branches.
2001-06-26 18:26:26 +00:00
obrien
838db847ba Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)
into Binutils 2.11.2.
2001-06-26 17:57:37 +00:00
obrien
bf5e085437 We use the stock (2.11.2) version of this now. 2001-06-26 17:56:02 +00:00
obrien
0b77cd4b66 Merge rev 1.2 (FreeBSD configuration support) into Binutils 2.11.2. 2001-06-26 17:54:12 +00:00
obrien
b2e9f9411e We use the stock (2.11.2) version of this file now. 2001-06-26 17:53:08 +00:00
obrien
3246ea6309 Use the stock (2.11.2) version of this now. 2001-06-26 17:51:35 +00:00
obrien
39dad63694 Use the vendor's 2.11.2 version of this file as in rev 1.4. 2001-06-26 17:45:23 +00:00
obrien
ca9b927b43 Merge rev 1.2 (configuration changes to support FreeBSD) into Binutils 2.11.2. 2001-06-26 17:44:22 +00:00
obrien
c68c2c92b4 Really wish this could back on the vendor branch...
Commit the stock 2.11.2 version.
2001-06-26 17:43:37 +00:00
obrien
5855931068 Merge rev 1.6 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere) into Binutils 2.11.2.
2001-06-26 17:17:04 +00:00
obrien
c9a7a018c0 Merge rev 1.8 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere.) into Binutils 2.11.2.
2001-06-26 17:15:34 +00:00
obrien
26c7f5f416 Merge our ELF branding into Binutils 2.11.2. 2001-06-26 17:14:56 +00:00
obrien
143bcf58db Import of GNU Binutils version 2.11.2. 2001-06-26 16:57:43 +00:00
obrien
b71556cec6 This commit was generated by cvs2svn to compensate for changes in r78828,
which included commits to RCS files with non-trunk default branches.
2001-06-26 16:57:43 +00:00
ache
0825b9873f Make the similar changes as in our keyinfo, i.e. allow user to get his own
sequence and allow root to get everybody's one. Before this change user
can't get his own sequence, root required.
2001-06-23 04:48:59 +00:00