mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 20:54:29 +02:00
BaseTools/GenFfs: Enlarge the size of 'AlignmentBuffer'
As a workaround for the static code checkers, enlarge the size of the string buffer 'AlignmentBuffer' so that it can hold all the digits of an unsigned 32-bit integer plus the size unit character (e.g. 'M' & 'K'). Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
b748e35c2b
commit
33fc1fc46d
@ -606,7 +606,12 @@ Returns:
|
|||||||
UINT8 PeSectionNum;
|
UINT8 PeSectionNum;
|
||||||
UINT32 HeaderSize;
|
UINT32 HeaderSize;
|
||||||
UINT32 Alignment;
|
UINT32 Alignment;
|
||||||
CHAR8 AlignmentBuffer[8];
|
//
|
||||||
|
// Workaround for static code checkers.
|
||||||
|
// Ensures the size of 'AlignmentBuffer' can hold all the digits of an
|
||||||
|
// unsigned 32-bit integer plus the size unit character.
|
||||||
|
//
|
||||||
|
CHAR8 AlignmentBuffer[16];
|
||||||
|
|
||||||
//
|
//
|
||||||
// Init local variables
|
// Init local variables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user