summaryrefslogtreecommitdiff
path: root/user/tcpdump/CVE-2018-19519.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/tcpdump/CVE-2018-19519.patch')
-rw-r--r--user/tcpdump/CVE-2018-19519.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/user/tcpdump/CVE-2018-19519.patch b/user/tcpdump/CVE-2018-19519.patch
new file mode 100644
index 000000000..ac3293927
--- /dev/null
+++ b/user/tcpdump/CVE-2018-19519.patch
@@ -0,0 +1,10 @@
+--- tcpdump-4.9.2/print-hncp.c.old 2017-09-03 23:17:14.000000000 +0000
++++ tcpdump-4.9.2/print-hncp.c 2018-12-07 19:31:24.360000000 +0000
+@@ -228,6 +228,7 @@
+ snprintf(buf, sizeof(buf), "%s/%d", ipaddr_string(ndo, &addr), plen);
+ plenbytes += 1 + IPV4_MAPPED_HEADING_LEN;
+ } else {
++ buf[0] = '\0';
+ plenbytes = decode_prefix6(ndo, prefix, max_length, buf, sizeof(buf));
+ }
+