summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/UPT
diff options
context:
space:
mode:
authorDong, Eric <eric.dong@intel.com>2016-08-02 19:32:30 +0800
committerStar Zeng <star.zeng@intel.com>2016-08-03 09:21:27 +0800
commit4636e4426a31802c25bd8409be9031c4d20324f4 (patch)
tree41152dcf8d3e6936c54012e7db1e9e3265338677 /BaseTools/Source/Python/UPT
parenta6d594c5fabd8da2273d2794826ec086cf9c3c04 (diff)
downloadedk2-platforms-4636e4426a31802c25bd8409be9031c4d20324f4.tar.xz
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>
Diffstat (limited to 'BaseTools/Source/Python/UPT')
0 files changed, 0 insertions, 0 deletions