httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50292] New: ProxyPassInterpolateEnv directive broken in version 2.3
Date Thu, 18 Nov 2010 14:50:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50292

           Summary: ProxyPassInterpolateEnv directive broken in version
                    2.3
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: vedel@ipanematech.com


In revision 959464 (re-order many struct members for better alignment on
64bit), the type of field interpolate_env in structure proxy_dir_conf was
changed from "int" to "signed char" but ap_set_flag_slot is still used as the
setter method. 
This does not work with the new type and leads to setting a wrong value and/or
thrashing memory depending on endianness.

A specific setter function such as :
static const char *
    set_interpolate_env(cmd_parms *parms, void *dconf, int flag)
{
    proxy_dir_conf *conf = dconf;

    conf->interpolate_env = flag;
    return NULL;
}
solves the problem but maybe something simpler is possible.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message