Skip to content

Commit

Permalink
Fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemk14ebr committed Oct 9, 2023
1 parent 60e1cf4 commit d5b0f4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions objfile/scanner.go
Expand Up @@ -91,6 +91,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
if err != nil {
panic(err)
}
x64sig.compiledRegex = x64reg
}

for _, match := range FindRegex(data, x64reg) {
Expand All @@ -115,6 +116,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
if err != nil {
panic(err)
}
x86sig.compiledRegex = x86reg
}

for _, match := range FindRegex(data, x86reg) {
Expand All @@ -133,6 +135,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
if err != nil {
panic(err)
}
ARM64_sig.compiledRegex = arm64reg
}

for _, match := range FindRegex(data, arm64reg) {
Expand Down Expand Up @@ -163,6 +166,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
if err != nil {
panic(err)
}
ARM32_sig.compiledRegex = arm32reg
}

for _, match := range FindRegex(data, arm32reg) {
Expand All @@ -183,6 +187,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
if err != nil {
panic(err)
}
PPC_BE_sig.compiledRegex = ppcBEreg
}

for _, match := range FindRegex(data, ppcBEreg) {
Expand Down

0 comments on commit d5b0f4f

Please sign in to comment.