httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r666192 - in /httpd/test/framework/trunk/t: htdocs/modules/cgi/nph-interim1.pl.PL htdocs/modules/cgi/nph-interim2.pl.PL modules/proxy.t
Date Tue, 10 Jun 2008 16:44:18 GMT
Author: jim
Date: Tue Jun 10 09:44:17 2008
New Revision: 666192

URL: http://svn.apache.org/viewvc?rev=666192&view=rev
Log:
Basic test for CVE-2008-2364... break out?? Easier
to do it here.

Added:
    httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim1.pl.PL
    httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim2.pl.PL
Modified:
    httpd/test/framework/trunk/t/modules/proxy.t

Added: httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim1.pl.PL
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim1.pl.PL?rev=666192&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim1.pl.PL (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim1.pl.PL Tue Jun 10 09:44:17
2008
@@ -0,0 +1,16 @@
+foreach $i (1..5) {
+print <<EOT1
+HTTP/1.1 100 Continue
+Server: Sausages/1.0
+
+EOT1
+;
+}
+
+print <<EOT2
+HTTP/1.1 200 OK
+Content-Type: text/html
+
+Hello world
+EOT2
+;

Added: httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim2.pl.PL
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim2.pl.PL?rev=666192&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim2.pl.PL (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/cgi/nph-interim2.pl.PL Tue Jun 10 09:44:17
2008
@@ -0,0 +1,16 @@
+foreach $i (1..50) {
+print <<EOT1
+HTTP/1.1 100 Continue
+Server: Sausages/1.0
+
+EOT1
+;
+}
+
+print <<EOT2
+HTTP/1.1 200 OK
+Content-Type: text/html
+
+Hello world
+EOT2
+;

Modified: httpd/test/framework/trunk/t/modules/proxy.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy.t?rev=666192&r1=666191&r2=666192&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy.t Tue Jun 10 09:44:17 2008
@@ -6,7 +6,7 @@
 use Apache::TestUtil;
 use Apache::TestConfig ();
 
-plan tests => 15, need_module 'proxy';
+plan tests => 17, need_module 'proxy';
 
 Apache::TestRequest::module("proxy_http_reverse");
 Apache::TestRequest::user_agent(requests_redirectable => 0);
@@ -35,8 +35,14 @@
     } else {
         skip "skipping tests with httpd <2.1.0" foreach (1..2);
     }
+    $r = GET("/reverse/modules/cgi/nph-interim1.pl");
+    ok t_cmp($r->code, 200, "small number of interim responses");
+
+    $r = GET("/reverse/modules/cgi/nph-interim2.pl");
+    ok t_cmp($r->code, 502, "large number of interim responses");
+
 } else {
-    skip "skipping tests without CGI module" foreach (1..8);
+    skip "skipping tests without CGI module" foreach (1..10);
 }
 
 if (have_min_apache_version('2.0.55')) {



Mime
View raw message