You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/07/29 06:19:52 UTC

DO NOT REPLY [Bug 35924] New: - ISAPI redirector accesses freed memory

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