]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix array overrun in efi.c
authorDarren Jenkins <darrenrjenkins@gmail.com>
Sun, 26 Mar 2006 09:37:34 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:56:57 +0000 (08:56 -0800)
commit3fafe98402cba08b655b9cbcdf04e5d396f57b62
tree68468809491f981931db2d2bce4036d151289009
parent53627449c2ce1f96b80d3affc88438a11efa2aec
[PATCH] fix array overrun in efi.c

Coverity found an over-run @ line 364 of efi.c

This is due to the loop checking the size correctly, then adding a '\0'
after possibly hitting the end of the array.

Ensure the loop exits with one space left in the array.

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/efi.c