Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(239)

Unified Diff: src/pkg/debug/pe/file.go

Issue 65740045: code review 65740045: cmd/ld: remove Plan 9 symbol table (Closed)
Patch Set: diff -r 60fe37dc47e2 https://code.google.com/p/go/ Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/debug/macho/file.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/debug/pe/file.go
===================================================================
--- a/src/pkg/debug/pe/file.go
+++ b/src/pkg/debug/pe/file.go
@@ -72,6 +72,9 @@
func (s *Section) Data() ([]byte, error) {
dat := make([]byte, s.sr.Size())
n, err := s.sr.ReadAt(dat, 0)
+ if n == len(dat) {
+ err = nil
+ }
return dat[0:n], err
}
« no previous file with comments | « src/pkg/debug/macho/file.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b