https://bz.apache.org/bugzilla/show_bug.cgi?id=64598
--- Comment #4 from Petr Gajdos <[email protected]> --- (In reply to Ruediger Pluem from comment #2) > Does the below patch fix your issue? > > Index: modules/proxy/mod_proxy_uwsgi.c > =================================================================== > --- modules/proxy/mod_proxy_uwsgi.c (revision 1879840) > +++ modules/proxy/mod_proxy_uwsgi.c (working copy) > @@ -175,7 +175,7 @@ > env = (apr_table_entry_t *) env_table->elts; > > for (j = 0; j < env_table->nelts; ++j) { > - headerlen += 2 + strlen(env[j].key) + 2 + strlen(env[j].val); > + headerlen += 2 + strlen(env[j].key) + 2 + env[j].val ? > strlen(env[j].val) : 0; > } > > ptr = buf = apr_palloc(r->pool, headerlen); > @@ -189,10 +189,12 @@ > memcpy(ptr, env[j].key, keylen); > ptr += keylen; > > - vallen = strlen(env[j].val); > + vallen = env[j].val ? strlen(env[j].val) : 0; > *ptr++ = (apr_byte_t) (vallen & 0xff); > *ptr++ = (apr_byte_t) ((vallen >> 8) & 0xff); > - memcpy(ptr, env[j].val, vallen); > + if (env[j].val) { > + memcpy(ptr, env[j].val, vallen); > + } > ptr += vallen; > } Will check .. -- 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]
