Received: (qmail 97923 invoked by uid 501); 8 Nov 2001 16:38:04 -0000 Message-Id: <20011108163804.97922.qmail@apache.org> Date: 8 Nov 2001 16:38:04 -0000 From: Chris Bunio Reply-To: cbunio@ceridian.ca To: submit@bugz.apache.org Subject: Error in WriteClient support function for ISAPI Extensions X-Send-Pr-Version: 3.110 >Number: 8715 >Category: mod_isapi >Synopsis: Error in WriteClient support function for ISAPI Extensions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Nov 08 08:40:00 PST 2001 >Closed-Date: Thu Nov 08 09:02:45 PST 2001 >Last-Modified: Thu Nov 08 09:02:45 PST 2001 >Originator: cbunio@ceridian.ca >Release: 2.0.16 >Organization: >Environment: Windows 2000 SP2 Visual C++ 6 SP5 >Description: When using an ISAPI extension an Access Violation is generated which is traceable back to the following code: bb = apr_brigade_create(r->pool); b = apr_bucket_transient_create(Buffer, (apr_size_t)lpwdwBytes); APR_BRIGADE_INSERT_TAIL(bb, b); b = apr_bucket_eos_create(); APR_BRIGADE_INSERT_TAIL(bb, b); ap_pass_brigade(r->output_filters, bb); The lpwdwBytes parameter that is used in the apr_bucket_transient_create function is a pointer and needs to be dereferenced before casting to the apr_size_t type. >How-To-Repeat: Use the simple.dll ISAPI extension that is part of the Microsoft Platform SDK samples for IIS. >Fix: The problem can be with the following modification to the WriteClient function: b = apr_bucket_transient_create(Buffer, (apr_size_t)(*lpwdwBytes)); >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: jwoolley State-Changed-When: Thu Nov 8 09:02:45 PST 2001 State-Changed-Why: This was fixed in version 2.0.18. Thanks for the report! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]