[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#746927: pu: net-snmp/5.4.3~dfsg-2.8+deb7u1 (Bug#721224 snmpd: produces error if the Executables/scripts entries in snmpd.conf is over 50)



Package: release.debian.org
Tags: wheezy
User: release.debian.org@packages.debian.org
Usertags: pu

Hi,

 I'd like to upload net-snmp/5.4.3~dfsg-2.8+deb7u1 to stable-proposed-updates
 to fix Bug#721224, error happens when Executables/scripts entries is over 50
 in snmpd.conf.

 Diff is below.

diff -Nru net-snmp-5.4.3~dfsg/debian/changelog net-snmp-5.4.3~dfsg/debian/changelog
--- net-snmp-5.4.3~dfsg/debian/changelog	2014-03-18 05:02:49.000000000 +0900
+++ net-snmp-5.4.3~dfsg/debian/changelog	2014-05-04 09:04:47.000000000 +0900
@@ -1,3 +1,15 @@
+net-snmp (5.4.3~dfsg-2.8+deb7u1) stable-proposed-updates; urgency=medium
+
+  * Team upload.
+  * debian/patches
+    - add bug#721224_entries_over50.patch to fix "snmpd: produces error if the
+      Executables/scripts entries in snmpd.conf is over 50" taken patch from
+      Red Hat Bugzilla.
+      Thanks to "Christian Ruppert" <c.ruppert@babiel.com> for the report
+      (Closes: #721224) 
+
+ -- Hideki Yamane <henrich@debian.org>  Sun, 04 May 2014 08:59:03 +0900
+
 net-snmp (5.4.3~dfsg-2.8) stable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch
--- net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch	1970-01-01 09:00:00.000000000 +0900
+++ net-snmp-5.4.3~dfsg/debian/patches/bug#721224_entries_over50.patch	2014-05-04 09:04:47.000000000 +0900
@@ -0,0 +1,29 @@
+Index: net-snmp/agent/mibgroup/agent/extend.c
+===================================================================
+--- net-snmp.orig/agent/mibgroup/agent/extend.c	2014-05-04 07:53:51.731755326 +0900
++++ net-snmp/agent/mibgroup/agent/extend.c	2014-05-04 07:54:28.075895631 +0900
+@@ -476,10 +476,21 @@
+             
+     } else if (!strcmp( token, "sh"   ) ||
+                !strcmp( token, "exec" )) {
+-        if ( num_compatability_entries == max_compatability_entries )
++        if ( num_compatability_entries == max_compatability_entries ) {
+             /* XXX - should really use dynamic allocation */
+-            config_perror("No further UCD-compatible entries" );
+-        else
++            netsnmp_old_extend *new_compatability_entries;
++            new_compatability_entries = realloc(compatability_entries,
++                             max_compatability_entries*2*sizeof(netsnmp_old_extend));
++            if (!new_compatability_entries)
++                config_perror("No further UCD-compatible entries" );
++            else {
++                memset(new_compatability_entries+num_compatability_entries, 0,
++                        sizeof(netsnmp_old_extend)*max_compatability_entries);
++                max_compatability_entries *= 2;
++                compatability_entries = new_compatability_entries;
++            }
++        }
++        if (num_compatability_entries != max_compatability_entries)
+             compatability_entries[
+                 num_compatability_entries++ ].exec_entry = extension;
+     }
diff -Nru net-snmp-5.4.3~dfsg/debian/patches/series net-snmp-5.4.3~dfsg/debian/patches/series
--- net-snmp-5.4.3~dfsg/debian/patches/series	2014-03-18 05:33:32.000000000 +0900
+++ net-snmp-5.4.3~dfsg/debian/patches/series	2014-05-04 09:04:47.000000000 +0900
@@ -1,3 +1,4 @@
+bug#721224_entries_over50.patch
 02_statistics.patch
 03_makefiles.patch
 05_searchdirs.patch


Reply to: