Re: [edk2] [PATCH] ShellPkg/for: Fix potential null pointer deference

2018-02-05 Thread Carsey, Jaben
Reviewed-by: Jaben Carsey > -Original Message- > From: Ni, Ruiyu > Sent: Sunday, February 04, 2018 11:54 PM > To: edk2-devel@lists.01.org > Cc: Carsey, Jaben > Subject: [PATCH] ShellPkg/for: Fix potential null pointer deference > Importance: High > > When "FOR %a %a IN A B C" is execute

[edk2] [PATCH] ShellPkg/for: Fix potential null pointer deference

2018-02-04 Thread Ruiyu Ni
When "FOR %a %a IN A B C" is executed, CurrentScriptFile->CurrentCommand->Data is NULL. But the code assumes it's not NULL and tries to deference it. The patch fixes this issue. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Cc: Jaben Carsey --- ShellPkg/Librar