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:
Fedor Indutny <fedor@indutny.com>
parent
525fad47
Please register or sign in to comment