mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-10-31 07:17:27 +00:00 
			
		
		
		
	|  8c3e4688e0 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=690 Within function EfiShellGetDevicePathFromFilePath(), when the input parameter 'Path' string is like: "FS0:" It is possible for the below statement: "if (*(Path+StrLen(MapName)+1) == CHAR_NULL) {" to read the content 1 byte beyond the string boundary (both 'Path' and 'MapName' will be FS0: in this case). This commit adds additional checks to avoid this. Cc: Steven Shi <steven.shi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> | ||
|---|---|---|
| .. | ||
| ConsoleLogger.c | ||
| ConsoleLogger.h | ||
| ConsoleWrappers.c | ||
| ConsoleWrappers.h | ||
| FileHandleInternal.h | ||
| FileHandleWrappers.c | ||
| FileHandleWrappers.h | ||
| Shell.c | ||
| Shell.h | ||
| Shell.inf | ||
| Shell.uni | ||
| ShellEnvVar.c | ||
| ShellEnvVar.h | ||
| ShellManParser.c | ||
| ShellManParser.h | ||
| ShellParametersProtocol.c | ||
| ShellParametersProtocol.h | ||
| ShellProtocol.c | ||
| ShellProtocol.h | ||