go/src
Alex Brainman 691c5c1568 debug/pe: handle files with no string table
pecoff.doc (https://goo.gl/ayvckk) in section 5.6 says:

Immediately following the COFF symbol table is the COFF string table.
The position of this table is found by taking the symbol table address
in the COFF header, and adding the number of symbols multiplied by
the size of a symbol.

So it is unclear what to do when symbol table address is 0.
Lets assume executable does not have any string table.

Added new test with executable with no symbol table. The

gcc -s testdata\hello.c -o testdata\gcc-386-mingw-no-symbols-exec.

command was used to generate the executable.

Fixes #16084

Change-Id: Ie74137ac64b15daadd28e1f0315f3b62d1bf2059
Reviewed-on: https://go-review.googlesource.com/24200
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-06-19 05:18:09 +00:00
..
archive
bufio
builtin
bytes bytes: use Run method for benchmarks 2016-06-03 07:03:03 +00:00
cmd cmd/compile: use power5 instructions for uint64 to float casts 2016-06-17 19:15:29 +00:00
compress compress/flate: use seperate const block for exported constants 2016-05-31 18:28:44 +00:00
container all: fixed a handful of typos 2016-05-24 21:18:03 +00:00
context context: document how to release resources associated with Contexts. 2016-06-15 00:30:46 +00:00
crypto crypto/x509: don't ignore asn1.Marshal error 2016-06-14 05:17:57 +00:00
database/sql
debug debug/pe: handle files with no string table 2016-06-19 05:18:09 +00:00
encoding encoding/csv: update doc about comments whitespace 2016-06-10 01:00:09 +00:00
errors
expvar expvar: slightly expand documentation for Var's String method 2016-05-19 04:20:47 +00:00
flag flag: recognize "0s" as the zero value for a flag.Duration 2016-05-31 23:45:47 +00:00
fmt
go go/ast: fix comments misinterpreted as documentation 2016-06-15 20:40:38 +00:00
hash hash/crc64: Use slicing by 8. 2016-05-18 14:38:04 +00:00
html html/template: mention risks of the CSS, HTML, JS, etc. types 2016-05-18 18:31:18 +00:00
image
index/suffixarray
internal internal/trace: err if binary is not supplied for old trace 2016-06-16 16:22:03 +00:00
io io: use SeekStart, SeekCurrent, and SeekEnd in io.Seeker documentation 2016-05-29 06:52:45 +00:00
log
math math/big: avoid panic in float.Text with negative prec 2016-06-01 19:20:52 +00:00
mime mime/multipart: sort header keys to ensure reproducible output 2016-05-16 22:55:16 +00:00
net net/http: pass through server side Transfer-Encoding headers 2016-06-15 03:10:47 +00:00
os os: fix blockUntilWaitable on freebsd/{386,arm} 2016-06-14 22:39:56 +00:00
path path/filepath: prevent infinite recursion on Windows on UNC input 2016-05-31 00:11:32 +00:00
reflect cmd/compile, etc: handle many struct fields 2016-06-14 15:32:34 +00:00
regexp regexp: use Run for benchmark 2016-06-01 10:28:01 +00:00
runtime runtime: eliminate poisonStack checks 2016-06-17 15:18:39 +00:00
sort
strconv strconv: use Run for some benchmarks 2016-06-02 20:47:29 +00:00
strings strings: fix and reenable amd64 Index for 17-31 byte strings 2016-05-27 22:57:32 +00:00
sync sync: document that RWMutex read locks may not be held recursively 2016-05-31 00:22:56 +00:00
syscall syscall: skip TestUnshare if kernel does not support net namespace 2016-06-15 11:41:49 +00:00
testing testing: added package doc for sub(tests/benchmarks) 2016-05-25 17:37:28 +00:00
text text/scanner: better error message if no error handler is installed 2016-05-25 15:44:28 +00:00
time time: document that RFC822/1123 don't parse all RFC formats 2016-06-09 15:32:48 +00:00
unicode
unsafe
vendor/golang.org/x/net vendor: update vendored route 2016-06-02 00:59:46 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
make.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
make.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00