Bug 35303

Summary: Response flushing callbacks uninitialised
Product: Tomcat Connectors Reporter: Tim Whittington <Tim.Whittington>
Component: CommonAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Flush parameter initialisation

Description Tim Whittington 2005-06-10 00:37:02 UTC
The two fields of jk_ws_service_t added for response flushing (flush and
flush_packets) are not initialised for all connectors - currently only the
Apache 1.3 ans 2.0 connectors.

This results in their use in the AJP callbacks in jk_ajp_common.c potentially
accessing unitialised data - this is the case when the ISAPI redirector is used.

The fix is to initialise the two fields in jk_init_ws_service. 
Patch against r1.49 is attached.
Comment 1 Tim Whittington 2005-06-10 00:37:54 UTC
Created attachment 15362 [details]
Flush parameter initialisation

Patch against jk_util.c r1.69
Comment 2 Tim Whittington 2005-06-10 05:24:36 UTC
This is actually incorrect. MLR on my part.
It'd probably still be more robust if these were inited in jk_init_ws_service.
Comment 3 Rainer Jung 2008-01-01 16:04:44 UTC
This has been cleaned up for version 1.2.27.