Tag: integer-overflow

537 How to detect integer overflow? 2008-10-13T22:53:21.407

191 Unexpected results when working with very big integers on interpreted languages 2013-08-04T18:46:25.513

172 Why is unsigned integer overflow defined behavior but signed integer overflow isn't? 2013-08-12T20:04:18.380

131 Why does Java think that the product of all numbers from 10 to 99 is 0? 2014-10-15T06:34:01.493

109 (A + B + C) ≠ (A + C + B​) and compiler reordering 2016-07-25T09:08:42.780

84 At what point in the loop does integer overflow become undefined behavior? 2016-10-07T10:12:29.567

75 If a 32-bit integer overflows, can we use a 40-bit structure instead of a 64-bit long one? 2014-12-30T12:22:30.983

75 Can argc overflow? 2015-01-21T19:32:06.387

75 Program behaving strangely on online IDEs 2018-02-11T12:07:22.190

69 Detecting signed overflow in C/C++ 2010-10-15T17:16:11.360

69 Is this a JVM bug or "expected behavior"? 2011-03-03T16:21:03.670

60 Is signed integer overflow still undefined behavior in C++? 2013-04-24T09:24:05.397

55 What happens when auto_increment on integer column reaches the max_value in databases? 2010-04-10T23:29:54.330

50 Can XOR of two integers go out of bounds? 2015-02-04T11:39:25.670

46 -1 * int.MinValue == int.MinValue?? Is this a bug? 2010-09-01T21:41:15.440

46 Does integer overflow cause undefined behavior because of memory corruption? 2016-05-19T13:59:21.160

45 Why Use Integer Instead of Long? 2014-10-16T16:11:21.247

41 Why don't languages raise errors on integer overflow by default? 2008-09-19T16:53:10.533

40 What does BigInteger having no limit mean? 2012-08-23T09:16:23.180

27 Why is this long overflowing to -1, instead of the minimum value for the type? 2015-07-09T20:12:17.153

25 Why would you want an integer overflow to occur? 2011-02-02T21:17:57.743

24 How to check integer overflow in C? 2010-04-13T22:31:58.507

24 Subtraction between signed and unsigned followed by division 2015-09-09T10:35:38.017

23 why Integer.MAX_VALUE + 1 == Integer.MIN_VALUE? 2012-02-22T15:14:13.823

21 Addition of two chars produces int 2011-01-27T09:34:48.837

21 Why don't C and C++ have built in ways to check for integer overflows? 2012-08-22T10:55:36.657

21 Can a non-empty string have a hashcode of zero? 2013-09-11T16:21:15.223

20 How is integer overflow exploitable? 2010-05-26T14:00:23.673

20 How disastrous is integer overflow in C++? 2012-01-26T20:25:53.343

20 How to compare two nano time values? [javadoc confusion] 2015-11-30T10:38:25.057

19 How do I detect overflow while multiplying two 2's complement integers? 2010-04-26T13:53:16.120

18 How does overflow work in java? 2017-11-28T14:13:10.400

17 What are arithmetic underflow and overflow in C? 2011-06-15T15:15:49.627

17 Are fixed-width integers distributive over multiplication? 2013-01-07T03:05:04.200

17 What is the right way to find the average of two values? 2014-07-23T20:38:35.280

17 Overflow occurs with multiplication 2015-06-02T20:52:14.253

16 Question about C behaviour for unsigned integer underflow 2010-05-03T19:05:18.943

16 Overflowing of Unsigned Int 2012-02-08T13:06:15.713

15 What is an integer overflow error? 2010-04-14T21:46:16.330

15 detecting multiplication of uint64_t integers overflow with C 2011-12-16T12:24:41.420

15 Equivalent of atoi for unsigned integers 2014-12-02T22:32:17.967

14 How do I get real integer overflows in MATLAB/Octave? 2010-03-11T13:32:06.533

14 Integer Overflow - Why not 2011-05-17T00:46:23.760

13 Incrementing an integer value beyond its integer limit - C# 2010-06-24T07:43:01.297

13 Warning : overflow in implicit constant conversion 2011-02-23T18:36:07.860

13 Why doesn't compound assignment in Java catch overflow problems? 2011-03-30T01:21:41.077

13 Is overflow of intN_t well-defined? 2015-06-14T12:29:41.347

13 Can doubles or BigDecimal overflow? 2015-08-12T20:32:28.340

13 How to detect overflow on power in Java 2015-11-10T20:25:32.857

13 Detect signed int overflow in Go 2015-11-10T23:37:00.873

13 Panicked at 'attempt to subtract with overflow' when cycling backwards though a list 2016-12-23T12:24:15.857

12 How to handle arbitrarily large integers 2008-11-21T21:36:45.320

12 Modular Exponentiation for high numbers in C++ 2010-02-05T12:04:10.053

12 Avoid overflow when adding numpy arrays 2015-04-13T17:15:15.590

11 No useful and reliable way to detect integer overflow in C/C++? 2011-07-28T08:42:07.483

11 How does one safely static_cast between unsigned int and int? 2011-09-29T18:25:30.993

11 Do C99 signed integer types defined in stdint.h exhibit well-defined behaviour in case of an overflow? 2012-02-20T19:28:30.847

11 Clojure - Calculate with big numbers 2012-10-10T19:12:55.733

11 Is there a safe way to get the unsigned absolute value of a signed integer, without triggering overflow? 2013-06-26T07:03:53.443

11 Do the C# and Java specifications spell out the same behavior on signed integer overflow? 2016-01-03T17:13:29.613

10 C++ Template for safe integer casts 2009-06-15T21:48:34.807

10 Checking for underflow/overflow in C++? 2010-03-08T04:21:18.450

10 How to deal with a wrapping counter in embedded C 2010-06-22T17:38:04.943

10 Wrap around explanation for signed and unsigned variables in C? 2013-11-07T17:09:55.763

10 what's the difference between mid=(beg+end)/2 and mid=beg+(end-beg)/2 in binary search? 2014-01-08T14:54:39.567

10 How can I detect integer overflow on 32 bits int? 2014-01-20T12:02:24.283

10 "Simulate" a 32-bit integer overflow in JavaScript 2014-05-10T06:20:50.373

9 Should I use unsigned integers for counting members? 2009-04-28T11:52:39.333

9 Best way to handle and report memory allocation errors due to integer overflow in Objective-C? 2010-02-12T05:41:03.980

9 Delphi: How to avoid EIntOverflow underflow when subtracting? 2010-03-10T15:06:14.427

9 Saturated addition of two signed Java 'long' values 2010-04-13T19:01:59.187

9 How to do a double-chunk add with no undefined behaviour? 2010-08-25T19:17:04.307

9 Common practice how to deal with Integer overflows? 2012-03-26T15:28:45.967

9 Overflow when multiplying Integers and assigning to Long 2013-06-26T08:56:43.390

9 Why abs(intmin) ~= -intmin in matlab 2013-06-30T19:41:36.743

9 Absolute value of INT_MIN 2014-03-08T11:38:18.317

9 Get numpy to warn on integer overflow 2015-08-14T16:02:02.843

9 SAT solving with more than 2^32 clauses 2015-09-17T13:41:43.590

9 Why is (18446744073709551615 == -1) true? 2016-11-15T10:58:38.490

9 Unexpected 32-bit integer overflow in pandas/numpy int64 (python 3.6) 2017-04-20T16:52:20.333

9 What is the result of 'wrapping' a multiplication overflow? 2017-06-01T09:42:34.143

9 Why may an overflow occur in the following program? 2017-08-12T17:21:05.477

8 overflows in size_t additions 2008-10-15T20:48:15.137

8 Java multiply operation behavior 2009-02-04T17:02:01.920

8 executing a process with argc=0 2011-11-13T18:46:37.330

8 Can a conforming compiler break uint32_t -> int16_t -> int32_t conversions? 2012-02-09T23:16:14.153

8 Integer overflow using lazy sequences in Clojure 2012-06-25T20:34:52.627

8 Integer overflow not consistent 2012-08-20T03:55:52.777

8 Is it possible to access the overflow flag register in a CPU with C++? 2013-01-16T12:52:12.303

8 Often big numbers become negative 2013-06-20T16:32:15.557

8 R: simple multiplication causes integer overflow 2013-07-15T09:24:44.887

8 Explanation of the safe average of two numbers 2013-10-01T01:04:57.230

8 Convert INT_MAX to float and then back to integer. 2014-05-02T04:32:34.490

8 Do numerical programming languages distinguish between a "largest finite number" and "infinity"? 2015-04-25T00:11:42.193

8 c# uint to ushort overflow like in native C 2016-01-11T21:32:13.890

8 How do reference-counting smart pointer's avoid or handle reference-counter overflows? 2017-05-22T14:42:13.837

7 Force PHP integer overflow 2008-11-19T02:26:27.107

7 C integer overflow behaviour when assigning to larger-width integers 2009-04-08T07:14:35.170

7 Why do my .net Int64's behaves as if they were Int32's? 2009-05-06T13:28:38.630