From f4a99aeb0252068ee78bf2158fb01fef6f4599ca Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 17 Nov 2019 10:18:09 -0500 Subject: Address multiple minor issues reported by the LGTM security scanner: - Lots of usage of localtime and gmtime (use _r/_s versions instead - Issue #5685) - Some unnecessary comparisons - Suppress checks that are not useful (header guards, short global names, and the integer overflow checks which don't reflect the actual range of values) --- cgi-bin/var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgi-bin') diff --git a/cgi-bin/var.c b/cgi-bin/var.c index fb9d051c0..c5fde0124 100644 --- a/cgi-bin/var.c +++ b/cgi-bin/var.c @@ -983,7 +983,7 @@ cgi_initialize_post(void) */ length = (size_t)strtol(content_length, NULL, 10); - data = malloc(length + 1); + data = malloc(length + 1); /* lgtm [cpp/uncontrolled-allocation-size] */ if (data == NULL) return (0); -- cgit v1.2.3