Re: [edk2] [PATCH] MdeModulePkg SmbiosMeasurementDxe: NULL check to String from GetSmbiosStringById

2015-10-29 Thread Yao, Jiewen
Reviewed-by: jiewen@intel.com -Original Message- From: Zeng, Star Sent: Friday, October 30, 2015 10:12 AM To: edk2-devel@lists.01.org Cc: Yao, Jiewen; Qiu, Shumin Subject: [PATCH] MdeModulePkg SmbiosMeasurementDxe: NULL check to String from GetSmbiosStringById When StringId is not

Re: [edk2] [PATCH] MdeModulePkg SmbiosMeasurementDxe: NULL check to String from GetSmbiosStringById

2015-10-29 Thread Qiu, Shumin
Reviewed-by: Qiu Shumin -Original Message- From: Zeng, Star Sent: Friday, October 30, 2015 10:12 AM To: edk2-devel@lists.01.org Cc: Yao, Jiewen; Qiu, Shumin Subject: [PATCH] MdeModulePkg SmbiosMeasurementDxe: NULL check to String from GetSmbiosStringById When StringId is not 0, String

[edk2] [PATCH] MdeModulePkg SmbiosMeasurementDxe: NULL check to String from GetSmbiosStringById

2015-10-29 Thread Star Zeng
When StringId is not 0, String returned from GetSmbiosStringById is expected to non-NULL. Add ASSERT (String != NULL); to ensure this. Cc: Jiewen Yao Cc: Shumin Qiu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- MdeModulePkg/Universal/SmbiosMeasurementDxe