mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Bounds check intermediate expressions.
When checking "(a + b) * 0", "a + b" might still overflow.
This commit is contained in:
1 parent
ebf3713555
commit
793eb043a4
4 files changed
+53
-35
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user