From 81c5255cdfb07ebd5fea5ccc1c00f544e70f7977 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Tue, 22 Dec 2009 07:16:37 +0000 Subject: add error handling for input parameter. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9582 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/FSVariable/FSVariable.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DuetPkg/FSVariable') diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c index 6bf61ab670..b68989c3a6 100644 --- a/DuetPkg/FSVariable/FSVariable.c +++ b/DuetPkg/FSVariable/FSVariable.c @@ -1288,6 +1288,10 @@ Returns: return EFI_INVALID_PARAMETER; } + if (DataSize != 0 && Data == NULL) { + return EFI_INVALID_PARAMETER; + } + // // Make sure if runtime bit is set, boot service bit is set also // -- cgit v1.2.3