You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2022/08/17 13:02:11 UTC

svn commit: r1903490 - /httpd/apreq/trunk/library/t/params.c

Author: jorton
Date: Wed Aug 17 13:02:11 2022
New Revision: 1903490

URL: http://svn.apache.org/viewvc?rev=1903490&view=rev
Log:
* library/t/params.c (header_attributes): Use _localize
  so failure cases don't cascade into a segfault.

Modified:
    httpd/apreq/trunk/library/t/params.c

Modified: httpd/apreq/trunk/library/t/params.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/library/t/params.c?rev=1903490&r1=1903489&r2=1903490&view=diff
==============================================================================
--- httpd/apreq/trunk/library/t/params.c (original)
+++ httpd/apreq/trunk/library/t/params.c Wed Aug 17 13:02:11 2022
@@ -104,6 +104,8 @@ static void header_attributes(dAT, void
     apr_size_t vlen;
     apr_status_t s;
 
+    AT_localize();
+
     s = apreq_header_attribute(hdr, "none", 4, &val, &vlen);
     AT_int_eq(s, APREQ_ERROR_NOATTR);
 
@@ -133,6 +135,7 @@ static void header_attributes(dAT, void
     s = apreq_header_attribute(hdr, "no-quote", 8, &val, &vlen);
     AT_int_eq(s, APREQ_ERROR_BADSEQ);
 
+    AT_delocalize();
 }