Schneier on Security: Torture Bill as C Code
Torture Bill as C CodeKevin boils down the new terrorist (and others) arrest/detainment/torture bill into a small piece of C code:
if (person = terrorist) {
punish_severely();
} else {
exit(-1);
}
よくやるエンバグなんですが、if文のところ、本当は==にするべきところが、=になってます。
これをやると、if文のところで代入が起きて、全部Trueとして処理されてしまいます。
で、これのネタなところは、
「全ての人がテロリストに仕立て上げられてしまう」
という点です。
まあ、今のアメリカらしいっちゃあらしいですが。
