diff options
author | Feng Tian <feng.tian@intel.com> | 2014-12-30 08:18:57 +0000 |
---|---|---|
committer | erictian <erictian@Edk2> | 2014-12-30 08:18:57 +0000 |
commit | 5a2dcd134a23491148af21792cec45252996d0d9 (patch) | |
tree | 24361eb7c1f95eaa33b0688510b41867d03da359 | |
parent | 871f6733152c08e6c68e5de8580ac624fb65269a (diff) | |
download | edk2-platforms-5a2dcd134a23491148af21792cec45252996d0d9.tar.xz |
MdeModulePkg/FvSimpleFileSystem:Fix a potential NULL dereference issue.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Shumin Qiu <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16562 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c b/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c index d3f447a321..019be26757 100644 --- a/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c +++ b/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c @@ -499,6 +499,9 @@ FvSimpleFileSystemOpen ( Instance = File->Instance;
FileName = TrimFilePathToAbsolutePath (FileName);
+ if (FileName == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
if (FileName[0] == L'\\') {
FileName++;
|