diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-17 07:04:56 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-17 07:04:56 -0800 |
commit | 04a1e62c2cec820501f93526ad1e46073b802dc4 (patch) | |
tree | c997e71d095d521f945daacc5b1e6b0e767639dc /arch/um | |
parent | 718deb6b61e34c200c1f2b706176d9aac334cb2d (diff) | |
download | linux-04a1e62c2cec820501f93526ad1e46073b802dc4.tar.gz linux-04a1e62c2cec820501f93526ad1e46073b802dc4.tar.bz2 linux-04a1e62c2cec820501f93526ad1e46073b802dc4.zip |
x86/ptrace: make genregs[32]_get/set more robust
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>
Diffstat (limited to 'arch/um')
0 files changed, 0 insertions, 0 deletions