summaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-12-17 07:04:56 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-01-06 14:26:44 -0800
commit1bb36e83e350d997fb109b77e41bf4dce57ffe58 (patch)
tree71b7459a869a0008c6eaf119e5a9c1b350d0a18d /lib/string_helpers.c
parent2bdc1c6942693c9ab1c17b82bc374966133963f3 (diff)
x86/ptrace: make genregs[32]_get/set more robust
commit 04a1e62c2cec820501f93526ad1e46073b802dc4 upstream. The loop condition is fragile: we compare an unsigned value to zero, and then decrement it by something larger than one in the loop. All the callers should be passing in appropriately aligned buffer lengths, but it's better to just not rely on it, and have some appropriate defensive loop limits. Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions