fix http://secunia.com/advisories/51948/ by applying a patch taken from
svn.ircd-hybrid.org
This commit is contained in:
parent
660e8a9764
commit
f2f0702db0
3 changed files with 20 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# $NetBSD: Makefile,v 1.46 2013/02/06 23:21:47 jperkin Exp $
|
# $NetBSD: Makefile,v 1.47 2013/03/23 19:29:50 spz Exp $
|
||||||
|
|
||||||
DISTNAME= ircd-hybrid-7.2.3
|
DISTNAME= ircd-hybrid-7.2.3
|
||||||
PKGREVISION= 5
|
PKGREVISION= 6
|
||||||
CATEGORIES= chat
|
CATEGORIES= chat
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ircd-hybrid/}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ircd-hybrid/}
|
||||||
EXTRACT_SUFX= .tgz
|
EXTRACT_SUFX= .tgz
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$NetBSD: distinfo,v 1.14 2012/12/20 22:01:22 joerg Exp $
|
$NetBSD: distinfo,v 1.15 2013/03/23 19:29:51 spz Exp $
|
||||||
|
|
||||||
SHA1 (ircd-hybrid-7.2.3.tgz) = f8a61e5500d28a4b4cded5f096c3627c2e5f01a0
|
SHA1 (ircd-hybrid-7.2.3.tgz) = f8a61e5500d28a4b4cded5f096c3627c2e5f01a0
|
||||||
RMD160 (ircd-hybrid-7.2.3.tgz) = 58bec65da2492480b9a4e86777c6c19a4b568408
|
RMD160 (ircd-hybrid-7.2.3.tgz) = 58bec65da2492480b9a4e86777c6c19a4b568408
|
||||||
|
@ -15,4 +15,5 @@ SHA1 (patch-ai) = 85e2f0650e22d8b948f65f66c6f35a9465f07b53
|
||||||
SHA1 (patch-include_memory_h) = dbfa0d3987716e70464054d4f67facd42f3b1973
|
SHA1 (patch-include_memory_h) = dbfa0d3987716e70464054d4f67facd42f3b1973
|
||||||
SHA1 (patch-include_tools.h) = 1381a32a05095d9e40fcc929db5fa8f2fb7e048d
|
SHA1 (patch-include_tools.h) = 1381a32a05095d9e40fcc929db5fa8f2fb7e048d
|
||||||
SHA1 (patch-servlink_makefile_in) = d8f3b2d5877b0851a9e10fb1ebb201f9cfcfb162
|
SHA1 (patch-servlink_makefile_in) = d8f3b2d5877b0851a9e10fb1ebb201f9cfcfb162
|
||||||
|
SHA1 (patch-src_hostmask.c) = e9fba90ea737c0b13ec92db5014d696beebdac43
|
||||||
SHA1 (patch-src_makefile_in) = d92326eb9bcc9db84add691561a2319881e118b3
|
SHA1 (patch-src_makefile_in) = d92326eb9bcc9db84add691561a2319881e118b3
|
||||||
|
|
16
chat/ircd-hybrid/patches/patch-src_hostmask.c
Normal file
16
chat/ircd-hybrid/patches/patch-src_hostmask.c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
$NetBSD: patch-src_hostmask.c,v 1.1 2013/03/23 19:29:51 spz Exp $
|
||||||
|
|
||||||
|
fix http://secunia.com/advisories/51948/ (taken from
|
||||||
|
http://svn.ircd-hybrid.org:8000/viewcvs.cgi/ircd-hybrid/trunk/src/hostmask.c?r1=1786&r2=1785&pathrev=1786)
|
||||||
|
|
||||||
|
--- src/hostmask.c.orig 2007-02-28 04:17:46.000000000 +0000
|
||||||
|
+++ src/hostmask.c
|
||||||
|
@@ -198,7 +198,7 @@ try_parse_v4_netmask(const char *text, s
|
||||||
|
{
|
||||||
|
char *after;
|
||||||
|
bits = strtoul(p + 1, &after, 10);
|
||||||
|
- if (!bits || *after)
|
||||||
|
+ if (bits < 0 || *after)
|
||||||
|
return HM_HOST;
|
||||||
|
if (bits > n * 8)
|
||||||
|
return HM_HOST;
|
Loading…
Reference in a new issue