75cb2da951
Currently there are a bunch of asserts() on metadata descriptors - change these to fail the blob parsing instead. While here also return -ENOMEM if any of the memory allocations fail. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ie37b73c57b304d05a45d10a8d33bcc1d47e7a1be Reviewed-on: https://review.gerrithub.io/388702 Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>