diff options
author | Wang Fan <fan.wang@intel.com> | 2018-01-11 18:09:24 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2018-01-12 11:08:44 +0800 |
commit | e0e26f9c1ffa596f700101027b9346b10d78b191 (patch) | |
tree | 4f067b5e97bf083d9acd6d38832893dfc76a303b /EdkShellPkg | |
parent | 20737c2fe6895b2ce291c90596365e9d0ac467b0 (diff) | |
download | edk2-e0e26f9c1ffa596f700101027b9346b10d78b191.tar.gz edk2-e0e26f9c1ffa596f700101027b9346b10d78b191.tar.bz2 edk2-e0e26f9c1ffa596f700101027b9346b10d78b191.zip |
MdeModulePkg/DxeNetLib: Add array range check in NetIp6IsNetEqual().
* The library API use array elements without any index range check, this
patch is to fix this issue to avoid null pointer reference.
V2
* Added an ASSERT check for the case PrefixLength equals to IP6_PREFIX_MAX.
* Synced some code descriptions to head file.
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Diffstat (limited to 'EdkShellPkg')
0 files changed, 0 insertions, 0 deletions