mirror of https://github.com/acidanthera/audk.git
2ad9cf37a4
The StrnLenS and AsciiStrnLenS functions, when presented with a string with no terminating NULL in the first MaxSize characters will check the character at String[MaxSize] before checking if Length < MaxSize. (They return the correct value, but have accessed beyond the stated limit in the process.) Flip the order of the tests to prevent this behaviour. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17936 6f19259b-4bc3-4df7-8a09-765794883524 |
||
---|---|---|
.. | ||
AArch64 | ||
Arm | ||
Ebc | ||
Ia32 | ||
Ipf | ||
X64 | ||
ARShiftU64.c | ||
BaseLib.inf | ||
BaseLib.uni | ||
BaseLibInternals.h | ||
BitField.c | ||
CheckSum.c | ||
ChkStkGcc.c | ||
Cpu.c | ||
CpuDeadLoop.c | ||
DivS64x64Remainder.c | ||
DivU64x32.c | ||
DivU64x32Remainder.c | ||
DivU64x64Remainder.c | ||
FilePaths.c | ||
GetPowerOfTwo32.c | ||
GetPowerOfTwo64.c | ||
HighBitSet32.c | ||
HighBitSet64.c | ||
LRotU32.c | ||
LRotU64.c | ||
LShiftU64.c | ||
LinkedList.c | ||
LongJump.c | ||
LowBitSet32.c | ||
LowBitSet64.c | ||
Math64.c | ||
ModU64x32.c | ||
MultS64x64.c | ||
MultU64x32.c | ||
MultU64x64.c | ||
RRotU32.c | ||
RRotU64.c | ||
RShiftU64.c | ||
SafeString.c | ||
SetJump.c | ||
String.c | ||
SwapBytes16.c | ||
SwapBytes32.c | ||
SwapBytes64.c | ||
SwitchStack.c | ||
Unaligned.c | ||
X86DisablePaging32.c | ||
X86DisablePaging64.c | ||
X86EnablePaging32.c | ||
X86EnablePaging64.c | ||
X86FxRestore.c | ||
X86FxSave.c | ||
X86GetInterruptState.c | ||
X86MemoryFence.c | ||
X86Msr.c | ||
X86ReadGdtr.c | ||
X86ReadIdtr.c | ||
X86Thunk.c | ||
X86WriteGdtr.c | ||
X86WriteIdtr.c |