summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2004-11-18 12:06:51 +0000
committerColin Percival <cperciva@FreeBSD.org>2004-11-18 12:06:51 +0000
commit20e46ec32e5a800097aa4a1baeb657f19fb2e52b (patch)
treebdae43c83ea8f22c537796cecf8464a82baee684
parentf8d4987d7271c1003cce92715022709505f995c7 (diff)
downloadsrc-test2-20e46ec32e5a800097aa4a1baeb657f19fb2e52b.tar.gz
src-test2-20e46ec32e5a800097aa4a1baeb657f19fb2e52b.zip
Notes
-rw-r--r--UPDATING4
-rw-r--r--sys/conf/newvers.sh2
-rw-r--r--usr.bin/fetch/fetch.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/UPDATING b/UPDATING
index d1f767f41052..1c4e56dbfb64 100644
--- a/UPDATING
+++ b/UPDATING
@@ -8,6 +8,10 @@ Items affecting the ports and packages system can be found in
/usr/ports/UPDATING. Please read that file before running
portupgrade. Important recent entries: 20040724 (default X changes).
+20041118: p1 FreeBSD-SA-04:16.fetch
+ Correct a buffer overflow in fetch(1) which could allow a
+ mallicious server to execute arbitrary code on the client.
+
20041104:
FreeBSD 5.3-RELEASE
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index dbcb44857c3b..c96d911929cf 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -32,7 +32,7 @@
TYPE="FreeBSD"
REVISION="5.3"
-BRANCH="RELEASE"
+BRANCH="RELEASE-p1"
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 21890fda407d..9b61041a5d19 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -584,7 +584,8 @@ fetch(char *URL, const char *path)
/* suck in the data */
signal(SIGINFO, sig_handler);
while (!sigint) {
- if (us.size != -1 && us.size - count < B_size)
+ if (us.size != -1 && us.size - count < B_size &&
+ us.size - count >= 0)
size = us.size - count;
else
size = B_size;