mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
proc: do not try to load a non-empty slice if the base address is 0 (#3295)
This commit is contained in:
committed by
GitHub
parent
372552bf1f
commit
212c2002bb
@ -829,6 +829,9 @@ func TestEvalExpression(t *testing.T) {
|
||||
|
||||
// Conversions to ptr-to-ptr types
|
||||
{`**(**runtime.hmap)(uintptr(&m1))`, false, `…`, `…`, "runtime.hmap", nil},
|
||||
|
||||
// Malformed values
|
||||
{`badslice`, false, `(unreadable non-zero length array with nil base)`, `(unreadable non-zero length array with nil base)`, "[]int", nil},
|
||||
}
|
||||
|
||||
ver, _ := goversion.Parse(runtime.Version())
|
||||
|
||||
Reference in New Issue
Block a user