mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/libsmi: remove unused patch(es)
Closes: https://github.com/gentoo/gentoo/pull/19290 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
committed by
Conrad Kostecki
parent
fa590b4186
commit
4d59e8c20d
@@ -1,19 +0,0 @@
|
||||
--- a/lib/smi.c
|
||||
+++ b/lib/smi.c
|
||||
@@ -1793,10 +1793,15 @@
|
||||
}
|
||||
|
||||
if (isdigit((int)node2[0])) {
|
||||
- for (oidlen = 0, p = strtok(node2, ". "); p;
|
||||
+ for (oidlen = 0, p = strtok(node2, ". ");
|
||||
+ p && oidlen < sizeof(oid)/sizeof(oid[0]);
|
||||
oidlen++, p = strtok(NULL, ". ")) {
|
||||
oid[oidlen] = strtoul(p, NULL, 0);
|
||||
}
|
||||
+ if (p) {
|
||||
+ /* the numeric OID is too long */
|
||||
+ return NULL;
|
||||
+ }
|
||||
nodePtr = getNode(oidlen, oid);
|
||||
if (nodePtr) {
|
||||
if (modulePtr) {
|
||||
Reference in New Issue
Block a user