delve/_fixtures/clientdo.go
Alessandro Arzilli bec6a65b15
proc,prettyprint: guard against autodereferenced escaped pointers (#1077)
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
2018-01-19 15:50:28 +01:00

11 lines
120 B
Go

package main
import (
"net/http"
"net/url"
)
func main() {
http.DefaultClient.Do(&http.Request{URL: &url.URL{}})
}