]> git.proxmox.com Git - mirror_edk2.git/commit - FatPkg/EnhancedFatDxe/Fat.h
FatPkg EnhancedFatDxe: Use safe string functions
authorHao Wu <hao.a.wu@intel.com>
Mon, 6 Jul 2015 01:41:45 +0000 (01:41 +0000)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 7 Apr 2016 06:22:43 +0000 (23:22 -0700)
commite76bc43e5d5827e7f8b20b3f89727b9bc86395e8
treec37edfc048ffa4d1086fd43c9e810af9a59a8bcb
parent4819b3e8f01e8d61ba5310d9de6ce71598d5b54c
FatPkg EnhancedFatDxe: Use safe string functions

Unsafe string functions are replaced with safe ones.

Safe string functions will assert if DestMax is not greater than
StrnLenS(Source, DestMax). Therefore, additional assert for checking the
size of source and destination buffers can be removed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
(based on FatPkg commit 2cb92b4f19b096daf133d6501afa13e5a85062c5)

[jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Mark Doran <mark.doran@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
FatPkg/EnhancedFatDxe/DirectoryManage.c
FatPkg/EnhancedFatDxe/Fat.h
FatPkg/EnhancedFatDxe/FileName.c
FatPkg/EnhancedFatDxe/Hash.c