summaryrefslogtreecommitdiffstats
path: root/server/util_script.c
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2022-08-25 17:57:59 +0200
committerRuediger Pluem <rpluem@apache.org>2022-08-25 17:57:59 +0200
commit48cf630810b927d3dc2a38aa6bc954c4dcd5f9ea (patch)
tree2002ea9e7e924223e4a3e11dcb3b92702d979c91 /server/util_script.c
parentmod_md v2.4.19 from github sync (diff)
downloadapache2-48cf630810b927d3dc2a38aa6bc954c4dcd5f9ea.tar.xz
apache2-48cf630810b927d3dc2a38aa6bc954c4dcd5f9ea.zip
* Use apr_size_t instead of int to harden against overflows.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1903680 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util_script.c')
-rw-r--r--server/util_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/util_script.c b/server/util_script.c
index 1fa4276cae..72175e7582 100644
--- a/server/util_script.c
+++ b/server/util_script.c
@@ -466,7 +466,7 @@ AP_DECLARE(int) ap_scan_script_header_err_core_ex(request_rec *r, char *buffer,
{
char x[MAX_STRING_LEN];
char *w, *l;
- int p;
+ apr_size_t p;
int cgi_status = HTTP_UNSET;
apr_table_t *merge;
apr_table_t *cookie_table;
@@ -837,7 +837,7 @@ static int getsfunc_STRING(char *w, int len, void *pvastrs)
{
struct vastrs *strs = (struct vastrs*) pvastrs;
const char *p;
- int t;
+ apr_size_t t;
if (!strs->curpos || !*strs->curpos) {
w[0] = '\0';