diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-17 10:18:09 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-18 11:19:16 -0500 |
commit | f4a99aeb0252068ee78bf2158fb01fef6f4599ca (patch) | |
tree | 31028c3e796a4b1701a10a06ffe37d823360d783 /cgi-bin | |
parent | f950947148bd1867c247a211af7404056b2b2e36 (diff) |
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)
Diffstat (limited to 'cgi-bin')
-rw-r--r-- | cgi-bin/var.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |