summaryrefslogtreecommitdiff
path: root/source/n/bind/bind-9.16.11.CVE-2020-8625.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bind/bind-9.16.11.CVE-2020-8625.diff')
-rw-r--r--source/n/bind/bind-9.16.11.CVE-2020-8625.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/n/bind/bind-9.16.11.CVE-2020-8625.diff b/source/n/bind/bind-9.16.11.CVE-2020-8625.diff
new file mode 100644
index 00000000..419b5bea
--- /dev/null
+++ b/source/n/bind/bind-9.16.11.CVE-2020-8625.diff
@@ -0,0 +1,12 @@
+diff -u -r --new-file bind-9.16.11.orig/lib/dns/spnego.c bind-9.16.11/lib/dns/spnego.c
+--- bind-9.16.11.orig/lib/dns/spnego.c 2021-01-11 07:23:31.000000000 -0600
++++ bind-9.16.11/lib/dns/spnego.c 2021-02-24 13:57:17.199873321 -0600
+@@ -848,7 +848,7 @@
+ return (ASN1_OVERRUN);
+ }
+
+- data->components = malloc(len * sizeof(*data->components));
++ data->components = malloc((len + 1) * sizeof(*data->components));
+ if (data->components == NULL) {
+ return (ENOMEM);
+ }