A zero length field value in encoder stream instructions left the value
data pointer NULL, passed then to ngx_memcpy() in ngx_http_v3_insert().
For the reasons outlined in
b0a4d0fb8, it is now set to an empty string.
st->literal.length = st->pint.value;
if (st->literal.length == 0) {
- st->value.len = 0;
+ ngx_str_set(&st->value, "");
goto done;
}
st->literal.length = st->pint.value;
if (st->literal.length == 0) {
- st->value.len = 0;
+ ngx_str_set(&st->value, "");
goto done;
}