Standard Library

GoDebugPe

Go stdlib package — debug/pe. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.COFFSymbol.FullName()Neutral
#
Signature
COFFSymbol.FullName(st StringTable) (string, error)

FullName finds real name of symbol sym. Normally name is stored

.File.COFFSymbolReadSectionDefAux()Neutral
#
Signature
File.COFFSymbolReadSectionDefAux(idx int) (*COFFSymbolAuxFormat5, error)

COFFSymbolReadSectionDefAux returns a blob of auxiliary information

.File.Close()Neutral
#
Signature
File.Close() error

Close closes the File.

.File.DWARF()Neutral
#
Signature
File.DWARF() (*dwarf.Data, error)

File.DWARF function.

.File.ImportedLibraries()Neutral
#
Signature
File.ImportedLibraries() ([]string, error)

ImportedLibraries returns the names of all libraries

.File.ImportedSymbols()Neutral
#
Signature
File.ImportedSymbols() ([]string, error)

ImportedSymbols returns the names of all symbols

.File.Section()Neutral
#
Signature
File.Section(name string) *Section

Section returns the first section with the given name, or nil if no such

.FormatError.Error()Neutral
#
Signature
FormatError.Error() string

FormatError.Error function.

.NewFile()Neutral
#
Signature
NewFile(r io.ReaderAt) (*File, error)

NewFile creates a new File for accessing a PE binary in an underlying reader.

.Open()Neutral
#
Signature
Open(name string) (*File, error)

Open opens the named file using os.Open and prepares it for use as a PE binary.

Fully-Qualified Names

FQNField
debug/pefqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # debug/pe