Date: Fri, 15 Aug 2003 18:49:38 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ia64/ia64 ptrace_machdep.c Message-ID: <200308160149.h7G1ncOg011761@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308160149.h7G1ncOg011761>