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 6b1d9ae commit 94f25ecCopy full SHA for 94f25ec
src/debug/pe/symbol.go
@@ -136,10 +136,9 @@ const (
136
// auxiliary symbols: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#auxiliary-symbol-records
137
// COMDAT sections: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#comdat-sections-object-only
138
// auxiliary info for section definitions: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#auxiliary-format-5-section-definitions
139
-//
140
func (f *File) COFFSymbolReadSectionDefAux(idx int) (*COFFSymbolAuxFormat5, error) {
141
var rv *COFFSymbolAuxFormat5
142
- if idx < 0 || idx > len(f.COFFSymbols) {
+ if idx < 0 || idx >= len(f.COFFSymbols) {
143
return rv, fmt.Errorf("invalid symbol index")
144
}
145
pesym := &f.COFFSymbols[idx]
0 commit comments