Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 28fd7b090d1b416f1e94e52abd08bf16fd404649
      
https://github.com/tianocore/edk2/commit/28fd7b090d1b416f1e94e52abd08bf16fd404649
  Author: Zhang, Chao B <chao.b.zh...@intel.com>
  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
to UINTN.

Cc: Hao Wu <hao.a...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <chao.b.zh...@intel.com>
Reviewed-by: Hao Wu <hao.a...@intel.com>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to