Implement Computer Aided Ignorance
PATCH 1/1 Implement Computer Aided Ignorance
Jörn
Signature · 31 lines
Happiness isn't having what you want, it's wanting what you have. -- unknown Implement Computer Aided Ignorance (CAI) for Randy: o Only negative numbers >= -256MiB are turned positive. o Numbers above 256MiB (or below -256MiB) are ignored. This specifically catches a case when 0xc000_0000 is added/removed. Signed-off-by: Jörn Engel <[email protected]> --- scripts/checkstack.pl | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.11cow/scripts/checkstack.pl~randy_check 2004-12-28 17:31:38.000000000 +0100 +++ linux-2.6.11cow/scripts/checkstack.pl 2005-03-07 00:39:44.000000000 +0100 @@ -90,11 +90,12 @@ while (my $line = <STDIN>) { my $size = $1; $size = hex($size) if ($size =~ /^0x/); - if ($size > 0x80000000) { + if ($size > 0xf0000000) { $size = - $size; $size += 0x80000000; $size += 0x80000000; } + next if ($size > 0x10000000); next if $line !~ m/^($xs*)/; my $addr = $1;