You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ronald Bernhardt <Ro...@de.bosch.com> on 2001/10/17 11:52:28 UTC

mod_isapi/8562: Apache crashes when using isapi WriteClient

>Number:         8562
>Category:       mod_isapi
>Synopsis:       Apache crashes when using isapi WriteClient
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Oct 17 03:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ronald.Bernhardt@de.bosch.com
>Release:        2.016 (beta)
>Organization:
apache
>Environment:
Windows 2000, sp2; VC++ 6.0
>Description:
Apache crashes when an isapi exention dll uses WriteClient. This is because of a forgotten dereferencing of pointer variable carrying the length of the data stream to be written.
>How-To-Repeat:
Use WriteClient in an Isapi-Extension dll e.g. IIS-Sample "Simple" included in Plattform SDK Samples (Plattform SDK\samples\web\iis\isapi\extension\simple). 
>Fix:
in

WriteClient (HCONN ConnID, LPVOID Buffer, LPDWORD lpwdwBytes,
                         DWORD dwReserved)
{
...
    b = apr_bucket_transient_create(Buffer, (apr_size_t)lpwdwBytes);

dereferencing of pointer was forgotten, so should be

    b = apr_bucket_transient_create(Buffer, (apr_size_t)(*lpwdwBytes));


>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]