@@ -91,6 +91,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
91
91
if err != nil {
92
92
panic (err )
93
93
}
94
+ x64sig .compiledRegex = x64reg
94
95
}
95
96
96
97
for _ , match := range FindRegex (data , x64reg ) {
@@ -115,6 +116,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
115
116
if err != nil {
116
117
panic (err )
117
118
}
119
+ x86sig .compiledRegex = x86reg
118
120
}
119
121
120
122
for _ , match := range FindRegex (data , x86reg ) {
@@ -133,6 +135,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
133
135
if err != nil {
134
136
panic (err )
135
137
}
138
+ ARM64_sig .compiledRegex = arm64reg
136
139
}
137
140
138
141
for _ , match := range FindRegex (data , arm64reg ) {
@@ -163,6 +166,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
163
166
if err != nil {
164
167
panic (err )
165
168
}
169
+ ARM32_sig .compiledRegex = arm32reg
166
170
}
167
171
168
172
for _ , match := range FindRegex (data , arm32reg ) {
@@ -183,6 +187,7 @@ func findModuleInitPCHeader(data []byte, sectionBase uint64) []SignatureMatch {
183
187
if err != nil {
184
188
panic (err )
185
189
}
190
+ PPC_BE_sig .compiledRegex = ppcBEreg
186
191
}
187
192
188
193
for _ , match := range FindRegex (data , ppcBEreg ) {
0 commit comments