audk/MdeModulePkg/Universal
Mike Beaton 0bcc503595 MdeModulePkg/HiiDatabase: Fix incorrect AllocateCopyPool size
The immediately preceding call, GetBestLanguage, plus the implementation of
HiiGetString, which is called immediately afterwards, make it clear that
BestLanguage is a null-terminated ASCII string, and not just a five byte,
non-null terminated buffer.

Therefore AsciiStrLen is one byte too short, meaning that whether the space
allocated is really sufficient and whether the resultant string is really
null-terminated becomes implementation-dependent. Rather than switching to
AsciiStrSize, we use an explicitly compile-time string length calculation
(both compile-time and run-time approaches are currently used elsewhere in
the codebase for copying static strings).

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
2023-09-11 01:17:33 +00:00
..
Acpi MdeModulePkg: Supporting S3 in 64bit PEI 2022-12-19 06:12:56 +00:00
BdsDxe MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
BootManagerPolicyDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsuleOnDiskLoadPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsulePei MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
CapsuleRuntimeDxe MdeModulePkg/CapsuleRuntimeDxe: Add LoongArch64 architecture. 2022-10-14 02:16:33 +00:00
Console MdeModulePkg: remove garbage pixels in LaffStd glyphs 2023-01-20 17:39:25 +00:00
DebugPortDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugServicePei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugSupportDxe MdeModulePkg: Replace Opcode with the corresponding instructions. 2022-03-01 01:45:47 +00:00
DevicePathDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Disk MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DisplayEngineDxe MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
DriverHealthManagerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DriverSampleDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EbcDxe MdeModulePkg: Consume new alignment-related macros 2023-04-01 23:11:44 +00:00
EsrtDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EsrtFmpDxe MdeModulePkg/EsrtFmpDxe: Support multiple devices with 0 HardwareInstance 2023-02-15 01:52:59 +00:00
FaultTolerantWriteDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
FaultTolerantWritePei MdeModulePkg/FaultTolerantWrite: Consume Variable Flash Info 2022-05-19 06:11:20 +00:00
FileExplorerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FvSimpleFileSystemDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HiiDatabaseDxe MdeModulePkg/HiiDatabase: Fix incorrect AllocateCopyPool size 2023-09-11 01:17:33 +00:00
HiiResourcesSampleDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LegacyRegion2Dxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LoadFileOnFv2 MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LockBox/SmmLockBox MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryTest MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Metronome MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MonotonicCounterRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PCD MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
PcatSingleSegmentPciCfg2Pei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformDriOverrideDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PrintDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
RegularExpressionDxe MdeModulePkg/RegularExpressionDxe: Fix Arm build error 2023-04-28 08:55:56 +00:00
ReportStatusCodeRouter MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SecurityStubDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SerialDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SetupBrowserDxe MdeModulePkg/SetupBrowser: Load storage via GetVariable for EfiVarStore 2023-08-03 12:12:27 +00:00
SmbiosDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
SmbiosMeasurementDxe MdeModulePkg SmbiosMeasurementDxe: Add Type4 CurrentSpeed to filter table 2022-09-14 10:11:53 +08:00
SmmCommunicationBufferDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StatusCodeHandler MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TimestampDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Variable MdeModulePkg/Variable: TcgMorLockSmm Key Mismatch changes lock state 2023-07-10 12:24:59 +00:00
WatchdogTimerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00