Branch: refs/heads/master
  Commit: 28fd7b090d1b416f1e94e52abd08bf16fd404649
  Author: Zhang, Chao B <>
  Date:   2018-02-08 (Thu, 08 Feb 2018)

  Changed paths:
    M SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c

  Log Message:
  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

Cc: Hao Wu <>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <>
Reviewed-by: Hao Wu <>

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
edk2-commits mailing list

Reply via email to