aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorRichard Musiol <mail@richard-musiol.de>2018-05-07 16:18:19 +0200
committerCherry Zhang <cherryyz@google.com>2018-05-10 12:05:17 +0000
commitbf23a4e61ddceb26744da8f462ce6351fca66089 (patch)
treed8729a64a59e3d2b0fcbea43ff1a6239bb26e594 /src/database/sql
parent10529a01fd8b0d5cc07eb3f6aa00a0272597684b (diff)
downloadgo-bf23a4e61ddceb26744da8f462ce6351fca66089.tar.xz
cmd/internal/obj/wasm: avoid invalid offsets for Load/Store
Offsets for Load and Store instructions have type i32. Bad index expression offsets can cause an offset to be larger than MaxUint32, which is not allowed. One example for this is the test test/index0.go. Generate valid code by adding a guard to the responsible rewrite rule. Also emit a proper error when using such a bad index in assembly code. Change-Id: Ie90adcbf3ae3861c26680eb81790f28692913ccf Reviewed-on: https://go-review.googlesource.com/111955 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions