diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-10-10 16:57:38 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-10-12 10:00:48 +0800 |
commit | 5e6e2dcc380dcd841f6f979fea8c302c80a87ec3 (patch) | |
tree | ae943e2ccad0d654ae0a80c6baf9382910d11aa1 /BaseTools/Source/Python/Common/RangeExpression.py | |
parent | 618ef6f9bae14e1543d61993ab7ab8992063e4cc (diff) | |
download | edk2-5e6e2dcc380dcd841f6f979fea8c302c80a87ec3.tar.gz edk2-5e6e2dcc380dcd841f6f979fea8c302c80a87ec3.tar.bz2 edk2-5e6e2dcc380dcd841f6f979fea8c302c80a87ec3.zip |
MdeModulePkg/Bds: Check variable name even *if* OptionNumber is NULL
Current implementation skips to check whether the last four
characters are digits when the OptionNumber is NULL.
Even worse, it may incorrectly return FALSE when OptionNumber is
NULL.
The patch fixes it to always check the variable name even
OptionNumber is NULL.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/RangeExpression.py')
0 files changed, 0 insertions, 0 deletions