Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pack: do not multiply out_size by realloc_size
In `flb_msgpack_raw_to_json_sds`, when the buffer is reallocated it calls `flb_sds_increase`. This increases the length by adding the `len` argument to the length and reallocating the sds object. After doing this, the `out_size` is multiplied by `realloc_size`. This does not match reality, as what happened in the reallocation was additive not multiplicative. This commit corrects the inconsistency.
- Loading branch information