]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/BaseLib: Add an additional check within AsciiStriCmp
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 3 Aug 2018 02:42:45 +0000 (10:42 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 6 Aug 2018 02:12:13 +0000 (10:12 +0800)
commitc1f032cd3a95ed74dad27d848526495e5790d4af
treec0f33d517c99a7f1ec9db51d8c146afa1d99c8f7
parent526dd0245bf0db6a01c21943201a4572747bca7f
MdePkg/BaseLib: Add an additional check within AsciiStriCmp

This commit adds an addtional check in AsciiStriCmp. It
explicitly checks the end of the sting pointed by 'SecondString' to make
the code logic easier for reading and to prevent possible mis-reports by
static code checkers.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <Hao.a.wu@intel.com>
MdePkg/Library/BaseLib/String.c