summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2019-10-10 15:49:55 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-19 14:08:23 +0000
commitadc6898366298d1f64b91785e50095527f682758 (patch)
treefedd517c84aaf44201278c5d4b775381aa1ab252 /BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
parent929d1a24d12822942fd4f9fa83582e27f92de243 (diff)
downloadedk2-adc6898366298d1f64b91785e50095527f682758.tar.gz
edk2-adc6898366298d1f64b91785e50095527f682758.tar.bz2
edk2-adc6898366298d1f64b91785e50095527f682758.zip
SecurityPkg/DxeImageVerificationLib: refactor db/dbx fetching code (CVE-2019-14575)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1608 The dbx fetching code inside the while/for-loop causes code hard to understand. Since there's no need to get dbx more than once, this patch simplify the code logic by moving related code to be outside the while- loop. db fetching code is also refined accordingly to reduce the indent level of code. More comments are also added or refined to explain more details. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/CodeFragmentCollector.py')
0 files changed, 0 insertions, 0 deletions