Comment on IDIV DoS (INT_MIN / -1)parentComments−haberman13yThat's probably because the code in the article uses compile-time constants as operands. Try this one and pass "-1" as the command-line parameter: int main(int argc, char *argv[]) { return (1LL << 63) / atoi(argv[1]); } Note that this issue has been written about before by Tavis Ormandy: http://my.opera.com/taviso/blog/show.dml/639454−huhsamovar13yFloating point exception: 8
Comments
That's probably because the code in the article uses compile-time constants as operands. Try this one and pass "-1" as the command-line parameter:
Note that this issue has been written about before by Tavis Ormandy: http://my.opera.com/taviso/blog/show.dml/639454Floating point exception: 8