1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

- Add a patch obtained from authors:

A bug discovered in 2.0.6 allows a remote user to crash the client.
  All users should upgrade to a patched 2.0.6 immediately.
- Point fetching to our own resources, www.xchat.org is not able to
  reliably transfer a file.
- Bump portrevision

Reported by:	Rui Lopes
This commit is contained in:
Pav Lucistnik 2003-12-14 13:26:21 +00:00
parent 1b42b8f902
commit 2887d4f2a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95785
4 changed files with 52 additions and 4 deletions

View File

@ -7,9 +7,11 @@
PORTNAME= xchat2
PORTVERSION= 2.0.6
PORTREVISION= 1
CATEGORIES= irc gnome ipv6
MASTER_SITES= http://xchat.org/files/source/2.0/ \
http://xchat.linuxpower.org/files/source/2.0/
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= adamw
# http://xchat.org/files/source/2.0/
DISTNAME= xchat-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org

View File

@ -0,0 +1,22 @@
# Fixes potential crash when receiving an invalid PSEND ID number.
--- src/common/dcc.c 2003-11-28 14:06:57.000000000 +1100
+++ src/common/dcc.c 2003-12-13 20:17:12.000000000 +1100
@@ -1659,9 +1659,15 @@
* sending file.
*/
dcc = find_dcc_from_id (pasvid, TYPE_SEND);
- dcc->addr = addr;
- dcc->port = port;
- dcc_connect(dcc);
+ if (dcc)
+ {
+ dcc->addr = addr;
+ dcc->port = port;
+ dcc_connect (dcc);
+ } else
+ {
+ dcc_malformed (sess, nick, word_eol[4] + 2);
+ }
return;
}

View File

@ -7,9 +7,11 @@
PORTNAME= xchat2
PORTVERSION= 2.0.6
PORTREVISION= 1
CATEGORIES= irc gnome ipv6
MASTER_SITES= http://xchat.org/files/source/2.0/ \
http://xchat.linuxpower.org/files/source/2.0/
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= adamw
# http://xchat.org/files/source/2.0/
DISTNAME= xchat-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org

View File

@ -0,0 +1,22 @@
# Fixes potential crash when receiving an invalid PSEND ID number.
--- src/common/dcc.c 2003-11-28 14:06:57.000000000 +1100
+++ src/common/dcc.c 2003-12-13 20:17:12.000000000 +1100
@@ -1659,9 +1659,15 @@
* sending file.
*/
dcc = find_dcc_from_id (pasvid, TYPE_SEND);
- dcc->addr = addr;
- dcc->port = port;
- dcc_connect(dcc);
+ if (dcc)
+ {
+ dcc->addr = addr;
+ dcc->port = port;
+ dcc_connect (dcc);
+ } else
+ {
+ dcc_malformed (sess, nick, word_eol[4] + 2);
+ }
return;
}