audk/BaseTools/Source/C/VfrCompile
Dandan Bi 9248a4717a BaseTools/VfrCompile: report error for Integer overflow
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1415

When an integer constant specified in the .vfr file is
too large for the varstore field it is being used with,
the VFR compiler reports an overflow warning like this:
Test.vfr(693): WARNING: Overflow: Value 1024 is too large to
         store in a UINT8
    : String to UINT* Overflow
Since Warning does not break the build process,
and it is easy to miss it.
This patch is to update the code to report error and break
the build if meet this kind of issue.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-01-08 09:59:30 +08:00
..
Pccts BaseTools: silence parentheses-equality warning 2018-01-02 20:37:32 +08:00
EfiVfr.h BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
GNUmakefile BaseTools/VfrCompile: honor EXTRA_LDFLAGS 2018-08-22 09:32:46 -07:00
Makefile
VfrCompiler.cpp BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
VfrCompiler.h BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
VfrError.cpp BaseTools/VfrCompile: report error for Integer overflow 2019-01-08 09:59:30 +08:00
VfrError.h BaseTools/VfrCompile: report error for Integer overflow 2019-01-08 09:59:30 +08:00
VfrFormPkg.cpp BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
VfrFormPkg.h BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
VfrSyntax.g BaseTools/VfrCompile: report error for Integer overflow 2019-01-08 09:59:30 +08:00
VfrUtilityLib.cpp BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
VfrUtilityLib.h BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00