aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kernel/cevt-txx9.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-01-30 15:27:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-31 15:51:31 -0800
commit878b8619f711280fd05845e21956434b5e588cc4 (patch)
treee2cb6be1d6e16bd0da18a79a8a85f4194df33d6f /arch/mips/kernel/cevt-txx9.c
parentf984d024190d5df98e448e35aa9e89a46fe50bb9 (diff)
Fix memory corruption in console selection
Fix an off-by-two memory error in console selection. The loop below goes from sel_start to sel_end (inclusive), so it writes one more character. This one more character was added to the allocated size (+1), but it was not multiplied by an UTF-8 multiplier. This patch fixes a memory corruption when UTF-8 console is used and the user selects a few characters, all of them 3-byte in UTF-8 (for example a frame line). When memory redzones are enabled, a redzone corruption is reported. When they are not enabled, trashing of random memory occurs. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/kernel/cevt-txx9.c')
0 files changed, 0 insertions, 0 deletions