You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2022/08/25 15:57:59 UTC
svn commit: r1903680 - /httpd/httpd/trunk/server/util_script.c
Author: rpluem
Date: Thu Aug 25 15:57:59 2022
New Revision: 1903680
URL: http://svn.apache.org/viewvc?rev=1903680&view=rev
Log:
* Use apr_size_t instead of int to harden against overflows.
Modified:
httpd/httpd/trunk/server/util_script.c
Modified: httpd/httpd/trunk/server/util_script.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_script.c?rev=1903680&r1=1903679&r2=1903680&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_script.c (original)
+++ httpd/httpd/trunk/server/util_script.c Thu Aug 25 15:57:59 2022
@@ -466,7 +466,7 @@ AP_DECLARE(int) ap_scan_script_header_er
{
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
{
struct vastrs *strs = (struct vastrs*) pvastrs;
const char *p;
- int t;
+ apr_size_t t;
if (!strs->curpos || !*strs->curpos) {
w[0] = '\0';