We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e8679 commit e8fbad5Copy full SHA for e8fbad5
src/debug/macho/file.go
@@ -361,8 +361,8 @@ func NewFile(r io.ReaderAt) (*File, error) {
361
"number of undefined symbols after index in dynamic symbol table command is greater than symbol table length (%d > %d)",
362
hdr.Iundefsym+hdr.Nundefsym, len(f.Symtab.Syms)), nil}
363
}
364
- dat := make([]byte, hdr.Nindirectsyms*4)
365
- if _, err := r.ReadAt(dat, int64(hdr.Indirectsymoff)); err != nil {
+ dat, err := saferio.ReadDataAt(r, uint64(hdr.Nindirectsyms)*4, int64(hdr.Indirectsymoff))
+ if err != nil {
366
return nil, err
367
368
x := make([]uint32, hdr.Nindirectsyms)
0 commit comments