Loading
bdev/nvme: fix crash when invoking apply_firmware RPC
When structure for output of json decoders in not initialized spdk_json_decode_string may fail trying to free uninitialized string. This patch changes mallocs used to allocate context and structure for output of decoder with calloc. Fixes #1151 Change-Id: I180b2ec52350b4ca90e7c318b4f2d13af554ec49 Signed-off-by:Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/483107 Reviewed-by:
Alexey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>