audk/SecurityPkg/Tcg/Opal/OpalPasswordDxe
Dong, Eric 4636e4426a SecurityPkg OpalPasswordDxe: Fix buffer overflow issue.
In current code, PSID is processed as string and the length is 0x20.
Current code only reserved 0x20 length buffer for it, no extra buffer
for the '\0'. When driver call UnicodeStrToAsciiStrS to convert PSID,
it search the '\0' for the end. So extra dirty data saved in PSID
info which caused PSID revert action failed. This patch reserved
extra 1 byte data for the '\0'.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2016-08-03 09:21:27 +08:00
..
ComponentName.c SecurityPkg: OpalPasswordDxe: Add Opal password dxe driver. 2016-03-29 15:37:30 +08:00
OpalDriver.c SecurityPkg: Replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr 2016-06-21 12:46:25 +08:00
OpalDriver.h SecurityPkg: OpalPasswordDxe: Add Opal password dxe driver. 2016-03-29 15:37:30 +08:00
OpalDriverPrivate.h SecurityPkg: OpalPasswordDxe: Add Opal password dxe driver. 2016-03-29 15:37:30 +08:00
OpalHii.c SecurityPkg OpalPasswordDxe: Fix buffer overflow issue. 2016-08-03 09:21:27 +08:00
OpalHii.h SecurityPkg: OpalPasswordDxe: Add Opal password dxe driver. 2016-03-29 15:37:30 +08:00
OpalHiiCallbacks.c SecurityPkg: OpalPasswordDxe: Add Opal password dxe driver. 2016-03-29 15:37:30 +08:00
OpalHiiFormStrings.uni SecurityPkg: OpalPasswordDxe: Add Opal password dxe driver. 2016-03-29 15:37:30 +08:00
OpalHiiFormValues.h SecurityPkg OpalPasswordDxe: Fix buffer overflow issue. 2016-08-03 09:21:27 +08:00
OpalHiiPrivate.h SecurityPkg: Replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr 2016-06-21 12:46:25 +08:00
OpalPasswordDxe.inf SecurityPkg OpalPasswordDxe: Install menu without device dependency. 2016-05-04 10:57:05 +08:00
OpalPasswordForm.vfr SecurityPkg OpalPasswordDxe: Change BlockSid position. 2016-05-05 12:52:46 +08:00