summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch')
-rw-r--r--net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch
deleted file mode 100644
index a2809087f820..000000000000
--- a/net-analyzer/openvas-libraries/files/openvas-libraries-9.0.3-gcc8.patch
+++ /dev/null
@@ -1,73 +0,0 @@
---- gvm-libs-9.0.3/nasl/nasl_isotime.c 2018-08-29 19:01:12.000000000 +0300
-+++ gvm-libs-9.0.3/nasl/nasl_isotime.c 2019-02-01 21:11:40.460358131 +0300
-@@ -102,9 +102,13 @@
- struct tm *tp;
-
- tp = gmtime (&atime);
-- snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-+ if (snprintf (timebuf, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
- 1900 + tp->tm_year, tp->tm_mon+1, tp->tm_mday,
-- tp->tm_hour, tp->tm_min, tp->tm_sec);
-+ tp->tm_hour, tp->tm_min, tp->tm_sec) < 0)
-+ {
-+ *timebuf = '\0';
-+ return;
-+ }
- }
- }
-
-@@ -480,8 +484,9 @@
- || year < 0 || month < 1 || day < 1)
- return 1;
-
-- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-- year, month, day, hour, minute, sec);
-+ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-+ year, month, day, hour, minute, sec) < 0)
-+ return 1;
- return 0;
- }
-
-@@ -519,8 +524,9 @@
- || year < 0 || month < 1 || day < 1)
- return 1;
-
-- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-- year, month, day, hour, minute, sec);
-+ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-+ year, month, day, hour, minute, sec) < 0)
-+ return 1;
- return 0;
- }
-
-@@ -558,13 +564,14 @@
- || year < 0 || month < 1 || day < 1)
- return 1;
-
-- snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-- year, month, day, hour, minute, sec);
-+ if (snprintf (atime, ISOTIME_SIZE, "%04d%02d%02dT%02d%02d%02d",
-+ year, month, day, hour, minute, sec) < 0)
-+ return 1;
- return 0;
- }
-
-
--
-+
- /**
- * @brief Return the current time in ISO format
- * @naslfn{isotime_now}
-@@ -784,9 +791,9 @@
- memcpy (timebuf, string, ISOTIME_SIZE -1);
- timebuf[ISOTIME_SIZE - 1] = 0;
-
-- nyears = get_int_local_var_by_name (lexic, "years", 0);
-- ndays = get_int_local_var_by_name (lexic, "days", 0);
-- nseconds = get_int_local_var_by_name (lexic, "seconds", 0);
-+ nyears = get_int_var_by_name (lexic, "years", 0);
-+ ndays = get_int_var_by_name (lexic, "days", 0);
-+ nseconds = get_int_var_by_name (lexic, "seconds", 0);
-
- if (nyears && add_years_to_isotime (timebuf, nyears))
- return NULL;