]> Cypherpunks repositories - gostls13.git/commit
cmd/pprof: ignore symbols with address 0 and size 0
authorIan Lance Taylor <iant@golang.org>
Fri, 24 Jun 2016 20:19:46 +0000 (13:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 24 Jun 2016 22:52:15 +0000 (22:52 +0000)
commit83e839f86fcc0762ea513f8d5dd9a50a8338e9c2
treee49aa89ecd2eb77bb51ca746e84a16ce55bca6de
parent5e43dc943a9265ec65690242eb8076727c18a958
cmd/pprof: ignore symbols with address 0 and size 0

Handling a symbol with address 0 and size 0, such as an ELF STT_FILE
symbols, was causing us to disassemble the entire program.  We started
adding STT_FILE symbols to help fix issue #13247.

Fixes #16154.

Change-Id: I174b9614e66ddc3d65801f7c1af7650f291ac2af
Reviewed-on: https://go-review.googlesource.com/24460
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/cmd/pprof/pprof.go