diff options
author | zi <zi@FreeBSD.org> | 2012-04-27 10:49:06 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2012-04-27 10:49:06 +0800 |
commit | d69159b675e85551a1bfdbac784a25a36d3c403f (patch) | |
tree | 0bf6adc8ac0d5ddde2c4161dbd79d5d96b434e7e /net-mgmt | |
parent | 6f11a21be5dd9051547319eaad9759f38c26fae7 (diff) | |
download | freebsd-ports-gnome-d69159b675e85551a1bfdbac784a25a36d3c403f.tar.gz freebsd-ports-gnome-d69159b675e85551a1bfdbac784a25a36d3c403f.tar.zst freebsd-ports-gnome-d69159b675e85551a1bfdbac784a25a36d3c403f.zip |
- Merge in fix for CVE-2012-2141
- Bump PORTREVISION
Security: 5d85976a-9011-11e1-b5e0-000c299b62e1
Obtained from: Red Hat Bugzilla (bug #815813)
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-agent__mibgroup__agent__extend.c | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 05a94f885017..826fec63db81 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.7.1 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= net-mgmt ipv6 MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= net- diff --git a/net-mgmt/net-snmp/files/patch-agent__mibgroup__agent__extend.c b/net-mgmt/net-snmp/files/patch-agent__mibgroup__agent__extend.c new file mode 100644 index 000000000000..b3aecfacb6bb --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent__mibgroup__agent__extend.c @@ -0,0 +1,13 @@ +--- ./agent/mibgroup/agent/extend.c.orig 2011-09-28 00:53:47.000000000 -0400 ++++ ./agent/mibgroup/agent/extend.c 2012-04-26 22:32:10.000000000 -0400 +@@ -1380,6 +1380,10 @@ + * Determine which line we've been asked for.... + */ + line_idx = *table_info->indexes->next_variable->val.integer; ++ if (line_idx < 1 || line_idx > extension->numlines) { ++ netsnmp_set_request_error(reqinfo, request, SNMP_NOSUCHINSTANCE); ++ continue; ++ } + cp = extension->lines[line_idx-1]; + + /* |