Revision: 16995
http://sourceforge.net/p/edk2/code/16995
Author: hwu1225
Date: 2015-03-03 05:37:27 +0000 (Tue, 03 Mar 2015)
Log Message:
-----------
MdeModulePkg/FvSimpleFileSystem:Fix a potential NULL dereference issue.
(Sync patch r16562 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <[email protected]>
Reviewed-by: Shumin Qiu <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/16562
Modified Paths:
--------------
branches/UDK2014.SP1/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c
Modified:
branches/UDK2014.SP1/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c
===================================================================
---
branches/UDK2014.SP1/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c
2015-03-03 05:36:41 UTC (rev 16994)
+++
branches/UDK2014.SP1/MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystem.c
2015-03-03 05:37:27 UTC (rev 16995)
@@ -499,6 +499,9 @@
Instance = File->Instance;
FileName = TrimFilePathToAbsolutePath (FileName);
+ if (FileName == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
if (FileName[0] == L'\\') {
FileName++;
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits