mirror_edk2/BaseTools/Source/Python/Ecc
Sami Mujawar b23c5b9722 BaseTools: Fix crash in ECC when parsing incorrect header
The ECC tool crashes if a C file has an incorrect file header
format.

The file ArmPkg\Library\ArmMmuLib\AArch64\ArmMmuPeiLibConstructor.c
has a file header in the incorrect format. It uses # to mark the
header comments instead of enclosing the file header in /* */. This
may have been a result of an INF file header being copied to a C
file.

A separate patch fixes the C file but ECC tool should
not crash if a file with an incorrect header is found.

Therefore, update the ECC tool to prevent it from crashing if an
incorrect file header is found. With this change the ECC tool will
report the incorrect header issue without crashing.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2020-12-22 01:26:10 +00:00
..
CParser3 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
CParser4 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
MetaFileWorkspace BaseTools:fix Ecc tool issue for check StructPcd 2020-02-12 09:26:22 +00:00
Xml BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
__init__.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
C.g BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
c.py BaseTools: Fix crash in ECC when parsing incorrect header 2020-12-22 01:26:10 +00:00
Check.py BaseTools/Ecc: Fix an issue of path separator compatibility 2020-09-01 17:55:56 +00:00
CodeFragment.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
CodeFragmentCollector.py BaseTools:ECC report errors on account of analyze special characters 2019-05-08 09:41:42 +08:00
config.ini BaseTools:ECC report errors on account of analyze special characters 2019-05-08 09:41:42 +08:00
Configuration.py BaseTools:ECC need to handle lower case 'static' 2019-09-09 11:14:42 +08:00
Database.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
EccGlobalData.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
EccMain.py BaseTools/Ecc: Replace deprecated function time.clock() 2020-05-13 05:52:03 +00:00
EccToolError.py BaseTools:ECC need to handle lower case 'static' 2019-09-09 11:14:42 +08:00
Exception.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
exception.xml BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FileProfile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
MetaDataParser.py BaseTools/Ecc: Fix ECC check MetaFile Copyright information issue 2020-10-27 06:50:06 +00:00
ParserWarning.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00