+1
−0
Loading
Fixes #3643 Currently, the `spdk_json_write_object_end` call does not check whether an indent can be removed, decrementing the indent counter and causing a potential integer underflow. This patch adds a check as is done in `spdk_json_write_array_end` to prevent this and fail accordingly. Change-Id: I3238ee084056e830a28313badd9c54d98a8e211c Signed-off-by:Anton Einax <butterino@proton.me> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25815 Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com>