audk/PerformancePkg/Dp_App
Hao Wu 269e0aebcf PerformancePkg Dp_App: Resolve buffer size mismatch
CHAR16 array mGaugeString[DP_GAUGE_STRING_LENGTH + 1] is pass into
function GetShortPdbFileName(). However, in this function it treats the
size of the input buffer as DXE_PERFORMANCE_STRING_SIZE.

Though DXE_PERFORMANCE_STRING_SIZE is smaller than DP_GAUGE_STRING_LENGTH
now, but this manner might introduce a potential risk of buffer overflow.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17746 6f19259b-4bc3-4df7-8a09-765794883524
2015-06-30 06:31:28 +00:00
..
Dp.c Add new extension PerformanceLib APIs to store ID info. 2012-04-24 09:15:10 +00:00
Dp.h Add new extension PerformanceLib APIs to store ID info. 2012-04-24 09:15:10 +00:00
Dp.inf Performance: Refine the format of INF files. 2015-01-20 01:45:35 +00:00
DpInternal.h PerfomancePkg Dp: Add missing EFIAPI for PrintToken(). 2014-03-26 07:08:12 +00:00
DpProfile.c Refine the code to follow coding style. 2011-12-01 04:31:46 +00:00
DpStrings.uni Add new extension PerformanceLib APIs to store ID info. 2012-04-24 09:15:10 +00:00
DpTrace.c Add new extension PerformanceLib APIs to store ID info. 2012-04-24 09:15:10 +00:00
DpUtilities.c PerformancePkg Dp_App: Resolve buffer size mismatch 2015-06-30 06:31:28 +00:00
Literals.c Refine the code to follow coding style. 2011-12-01 04:31:46 +00:00
Literals.h Refine the code to follow coding style. 2011-12-01 04:31:46 +00:00