]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/DxeNetLib: Fix an error in packet length counting.
authorWang Fan <fan.wang@intel.com>
Wed, 3 Jan 2018 02:24:53 +0000 (10:24 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 4 Jan 2018 02:55:15 +0000 (10:55 +0800)
commitc5fcec8c3fe2fa82065aace4d20c6bc30a0f5783
tree5dfeedd36453f2261ef51cff55c7f84979e7739f
parentcf4a8fa455c63feaffdb0fbc5b7c72729ffbb17f
MdeModulePkg/DxeNetLib: Fix an error in packet length counting.

* In old implementation, the operation len-- assumes AsciiSPrint()
  has counted NULL terminator, and it's not correct. This patch is
  to fix this issue.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
MdeModulePkg/Library/DxeNetLib/DxeNetLib.c