summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_spec.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-16 01:49:38 +0000
committermarcel <marcel@FreeBSD.org>2003-08-16 01:49:38 +0000
commit0cde071e2fbd00d8fd7bd3c9af274dc1d4f66a32 (patch)
tree198638df72e4097a76698e3016099132ba17e191 /lib/libkse/thread/thr_spec.c
parent52c5328900a6941ae49525fa64862f0842f3f2e9 (diff)
downloadFreeBSD-src-0cde071e2fbd00d8fd7bd3c9af274dc1d4f66a32.zip
FreeBSD-src-0cde071e2fbd00d8fd7bd3c9af274dc1d4f66a32.tar.gz
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
Diffstat (limited to 'lib/libkse/thread/thr_spec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud