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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to