diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-11-24 10:43:33 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-11-25 13:34:24 +0800 |
commit | eebfb7b2a52629f7c7268a9f5417ea86477c38eb (patch) | |
tree | 4acb43c1872841efbfe54332a4e65138f1154381 /BaseTools/Source/Python/Common/ToolDefClassObject.py | |
parent | a8a624d0a45d506f3ac1eab883226cb1cfa71bf6 (diff) | |
download | edk2-platforms-eebfb7b2a52629f7c7268a9f5417ea86477c38eb.tar.xz |
MdeModulePkg/EbcDebugger: Add ASSERT to ensure FieldBuffer is not NULL
In function EdbLoadCodBySymbolByIec(), AsciiStrGetNewTokenField() at line
1589 will return NULL if the first character in 'LineBuffer' is '\0'. But
the previous if statement at line 1576 ensures the above case will not
happen.
This commit adds ASSERT as warnings for the case that will not happen.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/ToolDefClassObject.py')
0 files changed, 0 insertions, 0 deletions