summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2015-02-25 18:45:41 +0000
committerPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
commit6b2510522f92026dc17e1c5508bbfab935741012 (patch)
tree7a4b7ca34f4611cc75624f2d0dbb65f6cf590808 /lib/console.c
parent90c65f72f882c2acd7f20cd59a5156aa63f7f425 (diff)
downloadefi-boot-shim-6b2510522f92026dc17e1c5508bbfab935741012.tar.gz
efi-boot-shim-6b2510522f92026dc17e1c5508bbfab935741012.zip
Fix length of allocated buffer for boot option comparison.
The following commit: commit 4aac8a1179e160397d7ef8f1e3232cfb4f3373d6 Author: Gary Ching-Pang Lin <glin@suse.com> Date: Thu Mar 6 10:57:02 2014 +0800 [fallback] Fix the data size for boot option comparison corrected the data size used for comparison, but also reduced the allocation so it doesn't include the trailing UTF16LE '\0\0' at the end of the string, with the result that the trailer of the buffer containing the string is overwritten, which OVMF detects as memory corruption. Increase the size of the storage buffer in a few places to correct this problem. Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'lib/console.c')
0 files changed, 0 insertions, 0 deletions