www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bunio <cbu...@ceridian.ca>
Subject mod_isapi/8715: Error in WriteClient support function for ISAPI Extensions
Date Thu, 08 Nov 2001 16:38:04 GMT

>Number:         8715
>Category:       mod_isapi
>Synopsis:       Error in WriteClient support function for ISAPI Extensions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Nov 08 08:40:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     cbunio@ceridian.ca
>Release:        2.0.16
>Organization:
apache
>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:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@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!     ]
 
 


Mime
View raw message