https://issues.apache.org/bugzilla/show_bug.cgi?id=48109 Summary: Improve binaryStream processing
WebappClassLoader#findResourceInternal
Product: Tomcat 6
Version: 6.0.20
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: Catalina
AssignedTo:
dev@...
ReportedBy:
knst.kolinko@...
(based on
http://marc.info/?l=tomcat-dev&m=124192105131636&w=2)
In WebappClassLoader#findResourceInternal() there is a lot of code between
opening the binaryStream and starting to use it.
There is a lot of processing, e.g.:
if (!openJARs()) {
return null;
}
if (antiJARLocking).
If something happens in those steps, it is possible to leak InputStream
references.
One case is fixed with rev.772872,
but it would be better to add a global try/finally block.
--
Configure bugmail:
https://issues.apache.org/bugzilla/userprefs.cgi?tab=email------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...