Commit 4c36f3e7 authored by Fedor Indutny's avatar Fedor Indutny Committed by Fedor Indutny
Browse files

buffer: truncate buffer after string decode



When our estimates for a storage size are higher than the actual length
of decoded data, the destination buffer should be truncated. Otherwise
`Buffer::Length` will give misleading information to C++ layer.

fix #7365

Signed-off-by: default avatarFedor Indutny <fedor@indutny.com>
parent 525fad47
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment