
Much like the bug in issue #1031 and commit f6f6f0bf13e4c708cb501202b83a6327a0f00e31 pointers can also escape to the heap and then have a zero address (and no children) when we autodereference. 1. Mark autodereferenced escaped variables with a 0 address as unreadable. 2. Add guards to the pretty printers for unsafe.Pointer and pointers. Fixes #1075
11 lines
120 B
Go
11 lines
120 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
)
|
|
|
|
func main() {
|
|
http.DefaultClient.Do(&http.Request{URL: &url.URL{}})
|
|
}
|