/[Apache-SVN]
ViewVC logotype

Revision 1809921


Jump to revision: Previous Next
Author: markt
Date: Wed Sep 27 20:27:55 2017 UTC (6 years, 6 months ago)
Changed paths: 4
Log Message:
Add some additional checks required on Windows to keep all the checks in one place and to avoid exceptions later in the processing.
Includes utility class to determine if platform is Windows and performance test case for alternative implementations.

Includes updates after kkolinko review
- Correct comment
- Use correct regular expression match (that makes regular expressions an even worse option)
- Improve (roughly x2) performance of invalid filename check
This is the fix for CVE-2017-12617


Changed paths

Path Details
Directorytomcat/tc8.0.x/trunk/ modified , props changed
Directorytomcat/tc8.0.x/trunk/java/org/apache/catalina/webresources/AbstractFileResourceSet.java modified , text changed
Directorytomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/compat/JrePlatform.java
(Copied from tomcat/trunk/java/org/apache/tomcat/util/compat/JrePlatform.java, r1809669)
added
Directorytomcat/tc8.0.x/trunk/test/org/apache/catalina/webresources/TestAbstractFileResourceSetPerformance.java
(Copied from tomcat/trunk/test/org/apache/catalina/webresources/TestAbstractFileResourceSetPerformance.java, r1809669)
added , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26