From: Zhang, Chao B Date: Thu, 8 Feb 2018 06:22:39 +0000 (+0800) Subject: SecurityPkg: Tcg2Smm: Refine type cast in pointer abstraction X-Git-Tag: edk2-stable201903~2429 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=28fd7b090d1b416f1e94e52abd08bf16fd404649;hp=28fd7b090d1b416f1e94e52abd08bf16fd404649 SecurityPkg: Tcg2Smm: Refine type cast in pointer abstraction Pointer subtraction is not performed by pointers to elements of the same array object. Such behavior is undefined by C11 standard and might lead to potential issues, Refine pointer subtraction by first casting each pointer to UINTN. Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chao Zhang Reviewed-by: Hao Wu ---