edk2/BaseTools/Source/C
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
..
BrotliCompress BaseTools: Update Brotli Compress to the latest one 1.0.6 2018-10-09 22:27:32 +08:00
Common BaseTools/CommonLib: drop the use of MAX_ADDRESS 2018-12-06 08:32:00 +01:00
DevicePath BaseTools/DevicePath: use MAX_UINT32 as default device path max size 2018-12-05 09:04:54 +01:00
EfiRom BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
GenCrc32 BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
GenFfs BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
GenFv BaseTools/GenFv: Support SecCore and PeiCore in different FV 2018-12-28 14:29:42 +08:00
GenFw BaseTools/GenFw ARM: don't permit R_ARM_GOT_PREL relocations 2018-12-12 08:36:59 +01:00
GenSec BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
Include BaseTools/CommonLib: drop the use of MAX_ADDRESS 2018-12-06 08:32:00 +01:00
LzmaCompress BaseTools LzmaCompress: Fix GCC warning misleading-indentation 2018-10-09 11:47:25 +02:00
Makefiles BaseTools: Support multi thread build Basetool on Windows 2018-09-12 13:02:11 +08:00
PyEfiCompressor BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
Split BaseTools GNUmakefile: Remove HOST_ARCH in every tool Makefile 2018-02-06 13:44:42 +08:00
TianoCompress BaseTools: Fix UEFI and Tiano Decompression logic issue 2018-11-11 11:48:31 +08:00
VfrCompile BaseTools/VfrCompile: report error for Integer overflow 2019-01-08 09:59:30 +08:00
VolInfo BaseTools: Clean up source files 2018-07-09 10:25:47 +08:00
GNUmakefile BaseTools: Remove tools only used by DuetPkg 2018-12-06 14:32:04 +08:00
Makefile BaseTools: Remove tools only used by DuetPkg 2018-12-06 14:32:04 +08:00