A dynamic chunk size is now being allocated for output since commit
dfc4085413 ("MEDIUM: sample: Get chunks with a size dependent on input
data when necessary"). However this one missed the need for the trailing
zero when specifying the size, let's add it.
No backport is needed, this is only in 3.4.
* before decoding.
*/
if (smp->flags & SMP_F_CONST || smp->data.u.str.size <= smp->data.u.str.data) {
- struct buffer *str = get_trash_chunk_sz(smp->data.u.str.data);
+ struct buffer *str = get_trash_chunk_sz(smp->data.u.str.data + 1);
if (!str)
return 0;