diff options
author | Than McIntosh <thanm@google.com> | 2021-11-04 14:11:57 -0400 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2021-11-04 14:11:57 -0400 |
commit | 06a4b2790c5bb6530e0c4f05277b19c187134f49 (patch) | |
tree | 09017cea1bfb6b6ba6eb191438232c064d55153d /src/debug/macho/file_test.go | |
parent | 35d5cd0dcfb9d06064ec37da1621d24676454058 (diff) | |
parent | 23991f50b34f8707bcfc7761321bb3b0e9dba10e (diff) | |
download | go-06a4b2790c5bb6530e0c4f05277b19c187134f49.tar.gz go-06a4b2790c5bb6530e0c4f05277b19c187134f49.zip |
[dev.boringcrypto.go1.16] all: merge go1.16.10 into dev.boringcrypto.go1.16
Change-Id: I164105d3036f0729da3f0b1dfa034f1d1d6a3a27
Diffstat (limited to 'src/debug/macho/file_test.go')
-rw-r--r-- | src/debug/macho/file_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/debug/macho/file_test.go b/src/debug/macho/file_test.go index 03915c86e2..9beeb80dd2 100644 --- a/src/debug/macho/file_test.go +++ b/src/debug/macho/file_test.go @@ -416,3 +416,10 @@ func TestTypeString(t *testing.T) { t.Errorf("got %v, want %v", TypeExec.GoString(), "macho.Exec") } } + +func TestOpenBadDysymCmd(t *testing.T) { + _, err := openObscured("testdata/gcc-amd64-darwin-exec-with-bad-dysym.base64") + if err == nil { + t.Fatal("openObscured did not fail when opening a file with an invalid dynamic symbol table command") + } +} |