Bounds check intermediate expressions.

When checking "(a + b) * 0", "a + b" might still overflow.
This commit is contained in:
Nigel Tao committed 2017-06-10 11:41:20 +10:00
1 parent ebf3713555
commit 793eb043a4
4 files changed
+53 -35

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ func TestCheck(t *testing.T) {
x = 0
x = 1 + (x * 0)
y = -y - 1
y = -(y * 0) - 1
y = this.i
b = not true