summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/argus-clients/files/argus-clients-3.0.7.4-overflow.patch')
-rw-r--r--net-analyzer/argus-clients/files/argus-clients-3.0.7.4-overflow.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-analyzer/argus-clients/files/argus-clients-3.0.7.4-overflow.patch b/net-analyzer/argus-clients/files/argus-clients-3.0.7.4-overflow.patch
new file mode 100644
index 000000000000..28d9fb1af6db
--- /dev/null
+++ b/net-analyzer/argus-clients/files/argus-clients-3.0.7.4-overflow.patch
@@ -0,0 +1,11 @@
+--- a/common/argus_util.c
++++ b/common/argus_util.c
+@@ -7473,7 +7473,7 @@
+ default: format = "%d"; break;
+ }
+ }
+- snprintf (upstr, 128, format, port);
++ snprintf (upstr, sizeof(upstr), format, port);
+
+ if (parser->ArgusPrintXml) {
+ sprintf (buf, " %sPort = \"%s\"", dirstr, upstr);