rpms/jetty/F-9 jetty-CERT438616-CERT237888-CERT21284.patch, NONE, 1.1 jetty.spec, 1.4, 1.5
Jeff Johnston (jjohnstn)
fedora-extras-commits at redhat.com
Fri Jul 4 16:56:10 UTC 2008
- Previous message: rpms/jetty/F-8 jetty-CERT438616-CERT237888-CERT21284.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 jetty.spec, 1.5, 1.6 sources, 1.2, 1.3
- Next message: rpms/jetty/F-9 jetty.spec,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jjohnstn
Update of /cvs/pkgs/rpms/jetty/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9676
Modified Files:
jetty.spec
Added Files:
jetty-CERT438616-CERT237888-CERT21284.patch
Log Message:
* Fri Jul 04 2008 Jeff Johnston <jjohnstn at redhat.com> 5.1.14-1jpp.1
- Security patch
- Resolves #417401, #417411, #417391
- Upgrade to 5.1.14 source tarball for Fedora
jetty-CERT438616-CERT237888-CERT21284.patch:
--- NEW FILE jetty-CERT438616-CERT237888-CERT21284.patch ---
Index: src/org/mortbay/http/HttpFields.java
===================================================================
RCS file: /cvsroot/jetty/Jetty/src/org/mortbay/http/HttpFields.java,v
retrieving revision 1.77
diff -r1.77 HttpFields.java
1461a1462
> value=StringUtil.noCRLF(value);
Index: src/org/mortbay/http/HttpResponse.java
===================================================================
RCS file: /cvsroot/jetty/Jetty/src/org/mortbay/http/HttpResponse.java,v
retrieving revision 1.62
diff -r1.62 HttpResponse.java
21a22
> import java.util.Date;
22a24
> import java.util.List;
462a465,519
> public void addDateField(String name, Date date)
> {
> super.addDateField(sanitize(name),date);
> }
>
> public void addDateField(String name, long date)
> {
> super.addDateField(sanitize(name),date);
> }
>
> public void addField(String name, String value) throws IllegalStateException
> {
> super.addField(sanitize(name),sanitize(value));
> }
>
> public void addIntField(String name, int value)
> {
> super.addIntField(sanitize(name),value);
> }
>
> public void setContentType(String contentType)
> {
> super.setContentType(sanitize(contentType));
> }
>
> public void setDateField(String name, Date date)
> {
> super.setDateField(sanitize(name),date);
> }
>
> public void setDateField(String name, long date)
> {
> super.setDateField(sanitize(name),date);
> }
>
> public void setField(String name, List value)
> {
> super.setField(sanitize(name),value);
> }
>
> public String setField(String name, String value)
> {
> return super.setField(sanitize(name),sanitize(value));
> }
>
> public void setIntField(String name, int value)
> {
> super.setIntField(sanitize(name),value);
> }
>
> private String sanitize(String s)
> {
> return StringUtil.noCRLF(s);
> }
>
Index: src/org/mortbay/servlet/Dump.java
===================================================================
RCS file: /cvsroot/jetty/Jetty/src/org/mortbay/servlet/Dump.java,v
retrieving revision 1.42
diff -r1.42 Dump.java
46a47
> import org.mortbay.util.StringUtil;
169a171,173
> response.setHeader("Ok","value");
> response.setHeader("ztu\r\n\r\npid","val\r\n\r\nue");
> response.addCookie(new Cookie("Stu'pid","val\r\n\r\nue"));
177c181,198
< Table table= new Table(0).cellPadding(0).cellSpacing(0);
---
> Table table= new Table(0)
> {
> public Table addCell(Object o)
> {
> if (o!=null && o instanceof String)
> {
> String s = (String)o;
> s=StringUtil.replace(s,"\r\n","<br/>");
> s=StringUtil.replace(s,"\n","<br/>");
> s=StringUtil.replace(s,"<","<");
> s=StringUtil.replace(s,">",">");
> o=s;
> }
> return super.addCell(o);
> }
> };
>
> table.cellPadding(0).cellSpacing(0);
360c381
< table.addCell("<pre>" + toString(request.getAttribute(name)) + "</pre>");
---
> table.addCell(toString(request.getAttribute(name)));
378c399
< table.addCell("<pre>" + toString(getInitParameter(name)) + "</pre>");
---
> table.addCell(toString(getInitParameter(name)));
395c416
< table.addCell("<pre>" + toString(getServletContext().getInitParameter(name)) + "</pre>");
---
> table.addCell(toString(getServletContext().getInitParameter(name)));
412c433
< table.addCell("<pre>" + toString(getServletContext().getAttribute(name)) + "</pre>");
---
> table.addCell(toString(getServletContext().getAttribute(name)));
435c456
< table.addCell("<pre>" + multi.getString(parts[p]) + "</pre>");
---
> table.addCell(multi.getString(parts[p]));
Index: src/org/mortbay/util/StringUtil.java
===================================================================
RCS file: /cvsroot/jetty/Jetty/src/org/mortbay/util/StringUtil.java,v
retrieving revision 1.16
diff -r1.16 StringUtil.java
286a287,292
>
> /* ------------------------------------------------------------ */
> public static String noCRLF(String s)
> {
> if (s==null || s.length()==0)
> return s;
287a294,334
> StringBuffer buf = null;
> int i=0;
> loop:
> for (;i<s.length();i++)
> {
> char c = s.charAt(i);
> switch(c)
> {
> case 0:
> case '\n':
> case '\r':
> {
> buf=new StringBuffer(s.length());
> buf.append(s,0,i);
> buf.append('.');
> break loop;
> }
> default:
> }
> }
>
> if (buf==null)
> return s;
>
> for (;i<s.length();i++)
> {
> char c = s.charAt(i);
> switch(c)
> {
> case 0:
> case '\n':
> case '\r':
> buf.append('.');
> break;
> default:
> buf.append(c);
> }
> }
>
> return buf.toString();
> }
Index: jetty.spec
===================================================================
RCS file: /cvs/pkgs/rpms/jetty/F-9/jetty.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- jetty.spec 25 Jun 2008 18:44:39 -0000 1.4
+++ jetty.spec 4 Jul 2008 16:55:15 -0000 1.5
@@ -54,7 +54,7 @@
Name: jetty
Version: 5.1.14
-Release: 1jpp.1%{?dist}
+Release: 1jpp.2%{?dist}
Summary: The Jetty Webserver and Servlet Container
Group: Applications/Internet
@@ -78,6 +78,7 @@
Patch1: jetty-PostFileFilter.patch
Patch2: jetty-libgcj-bad-serialization.patch
Patch3: jetty-TestRFC2616-libgcj-bad-date-parser.patch
+Patch4: jetty-CERT438616-CERT237888-CERT21284.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if ! %{gcj_support}
@@ -252,6 +253,8 @@
%patch2 -b .sav
%patch3 -b .sav
+%patch4
+
# Delete this Sun specific file.
rm src/org/mortbay/http/SunJsseListener.java
@@ -596,6 +599,10 @@
%endif
%changelog
+* Fri Jul 04 2008 Jeff Johnston <jjohnstn at redhat.com> 5.1.14-2jpp.1
+- Security patch
+- Resolves #417401, #417411, #417391
+
* Wed Jun 25 2008 Jeff Johnston <jjohnstn at redhat.com> 5.1.14-1jpp.1
- Upgrade to 5.1.14 source tarball for Fedora
- Previous message: rpms/jetty/F-8 jetty-CERT438616-CERT237888-CERT21284.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 jetty.spec, 1.5, 1.6 sources, 1.2, 1.3
- Next message: rpms/jetty/F-9 jetty.spec,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list