mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 08:04:56 +08:00
GP-4204 Corrected bad template implementation
This commit is contained in:
+1
-2
@@ -15,7 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package ghidra.util.bytesearch;
|
package ghidra.util.bytesearch;
|
||||||
|
|
||||||
import ghidra.program.model.data.DataType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Templated simple DittedBitSequence Pattern for a byte/mask pattern and associated action.
|
* Templated simple DittedBitSequence Pattern for a byte/mask pattern and associated action.
|
||||||
@@ -52,7 +51,7 @@ public class GenericByteSequencePattern<T> extends Pattern {
|
|||||||
* @param action to apply if the match succeeds
|
* @param action to apply if the match succeeds
|
||||||
*/
|
*/
|
||||||
public GenericByteSequencePattern(byte[] bytesSequence, byte[] mask,
|
public GenericByteSequencePattern(byte[] bytesSequence, byte[] mask,
|
||||||
GenericMatchAction<DataType> action) {
|
GenericMatchAction<T> action) {
|
||||||
super(new DittedBitSequence(bytesSequence, mask), 0, new PostRule[0], new MatchAction[1]);
|
super(new DittedBitSequence(bytesSequence, mask), 0, new PostRule[0], new MatchAction[1]);
|
||||||
|
|
||||||
MatchAction[] matchActions = getMatchActions();
|
MatchAction[] matchActions = getMatchActions();
|
||||||
|
|||||||
Reference in New Issue
Block a user