cvs commit: src/sys/ia64/ia64 ptrace_machdep.c
Marcel Moolenaar
marcel at FreeBSD.org
Fri Aug 15 18:49:41 PDT 2003
marcel 2003/08/15 18:49:38 PDT
FreeBSD src repository
Modified files:
sys/ia64/ia64 ptrace_machdep.c
Log:
Fix a range check bug. Don't left-shift the integer argument 'data'.
Sign extension happens after the shift, not before so that boundary
cases like 0x40000000 will not be caught properly.
Instead, right shift ndirty. It is guaranteed to be a multiple of 8.
While here, do some manual code motion and code commoning.
Range check bug pointed out by: iedowse
Revision Changes Path
1.2 +7 -12 src/sys/ia64/ia64/ptrace_machdep.c
More information about the cvs-src
mailing list