]> Cypherpunks repositories - gostls13.git/commit
runtime: add tests for checkptr
authorMatthew Dempsky <mdempsky@google.com>
Thu, 9 Jan 2020 23:26:01 +0000 (15:26 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 10 Jan 2020 21:40:21 +0000 (21:40 +0000)
commit5d0075156a01a8c9973188dc06b78aadabeb69da
tree9da2c7463365bf8e912760d181c9e421367e19f0
parentae0b735369317197773920ee282c68a01effaad3
runtime: add tests for checkptr

We had a few test cases to make sure checkptr didn't have certain
false positives, but none to test for any true positives. This CL
fixes that.

Updates #22218.

Change-Id: I24c02e469a4af43b1748829a9df325ce510f7cc4
Reviewed-on: https://go-review.googlesource.com/c/go/+/214238
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/checkptr_test.go [new file with mode: 0644]
src/runtime/testdata/testprog/checkptr.go [new file with mode: 0644]