tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35924] New: - ISAPI redirector accesses freed memory
Date Fri, 29 Jul 2005 04:19:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35924>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35924

           Summary: ISAPI redirector accesses freed memory
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Tim.Whittington@orionhealth.com


In init_jk of iis/jk_isapi_plugin.c, the worker_env is constructed from a map
allocated in that function, which is subsequently freed before init_jk exits.

The worker names (and some other strings) are copied from the map into the
worker_env, and subsequently into the worker structs themselves.

Later, when the worker name is accessed, freed memory is accessed and bogus data
is used. e.g. p->worker->name in ajp_done in jk_ajp_common.c

Mercifully, the fields concerned seem only to be used in debug logging
statements, so this hasn't caused any crashes - even in debug mode all you see
is a stream of İİİİİİİİ characters.
mod_jk may avoid this issue, as the config map is passed from Apache to the
module, and is presumably kept around, although I haven't tested that theory.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message