The real question is why multiplication by -1 isn't an error in that case.
-
-
-
Because SIGFPE applies specifically to integer division where the result can't be represented in an integer (of the same type). There are plenty of ways to overflow with integer multiplication besides that, and none of those cause this, but only two ways with division.
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
-
-
AFL found this bug in a scripting system I was working on, and it remains my favorite bug to tell anyone who thinks they can possibly write robust and secure software without that kind of testing.
ধন্যবাদ। আপনার সময়রেখাকে আরো ভালো করে তুলতে টুইটার এটিকে ব্যবহার করবে। পূর্বাবস্থায়পূর্বাবস্থায়
-
-
-
What the ... ! It works properly for 64 bits integers. Why?
-
Maybe is useful check the assembler code in 32 bits and 64 bits. Nice example for OrCo II?
-
It has nothing to do with the generated asm but with the internal representation of integers. There's no way to represent |INT_MIN| as |INT_MIN| > INT_MAX in two's complement. Multiplication causes no exception (read below to know more). Sad I didn't realize by myself :)
কথা-বার্তা শেষ
নতুন কথা-বার্তা -
লোড হতে বেশ কিছুক্ষণ সময় নিচ্ছে।
টুইটার তার ক্ষমতার বাইরে চলে গেছে বা কোনো সাময়িক সমস্যার সম্মুখীন হয়েছে আবার চেষ্টা করুন বা আরও তথ্যের জন্য টুইটারের স্থিতি দেখুন।