diff options
Diffstat (limited to 'security/openvas/files')
-rw-r--r-- | security/openvas/files/patch-misc_plugutils.c | 11 | ||||
-rw-r--r-- | security/openvas/files/patch-src_attack.c | 15 |
2 files changed, 23 insertions, 3 deletions
diff --git a/security/openvas/files/patch-misc_plugutils.c b/security/openvas/files/patch-misc_plugutils.c new file mode 100644 index 000000000000..5c04ea7c4825 --- /dev/null +++ b/security/openvas/files/patch-misc_plugutils.c @@ -0,0 +1,11 @@ +--- misc/plugutils.c.orig 2025-08-01 11:38:10 UTC ++++ misc/plugutils.c +@@ -74,7 +74,7 @@ add_kb_usage (struct script_infos *args, size_t size) + kb_usage += size; + if (kb_usage > max_kb_usage) + { +- g_warning ("KB usage exceeded %lu MB. Unable to store any further KB " ++ g_warning ("KB usage exceeded %zu MB. Unable to store any further KB " + "Items for script %s", + max_kb_usage / 1024 / 1024, args->name); + return -1; diff --git a/security/openvas/files/patch-src_attack.c b/security/openvas/files/patch-src_attack.c index af15212b9768..9a78559b0a30 100644 --- a/security/openvas/files/patch-src_attack.c +++ b/security/openvas/files/patch-src_attack.c @@ -1,5 +1,5 @@ ---- src/attack.c 2025-03-03 04:49:55.000000000 -0800 -+++ src/attack.c 2025-04-14 20:09:40.968033000 -0700 +--- src/attack.c.orig 2025-05-27 12:10:19 UTC ++++ src/attack.c @@ -31,7 +31,6 @@ #include "utils.h" @@ -8,7 +8,7 @@ #include <errno.h> /* for errno() */ #include <fcntl.h> #include <glib.h> -@@ -1555,14 +1554,14 @@ +@@ -1555,21 +1554,21 @@ stop: gettimeofday (&now, NULL); if (test_alive_hosts_only) { @@ -27,3 +27,12 @@ gvm_hosts_count (hosts)); if (prefs_get ("report_scripts")) + { + char *buff = +- g_strdup_printf ("},\"scan_time\": {\"start\": %ld, \"stop\": %ld}}", +- then.tv_sec, now.tv_sec); ++ g_strdup_printf ("},\"scan_time\": {\"start\": %lld, \"stop\": %lld}}", ++ (long long)then.tv_sec, (long long)now.tv_sec); + char *path = g_strdup_printf ( + "%s/%s-stats.json", prefs_get ("report_scripts"), globals->scan_id); + |