features: store mnemomics lower case

miasm extracts mnemonic capitalized while other backends do it
lowercase. To ensure capa works with all of them, use lower case in the
Mnemomic constructor.
This commit is contained in:
Ana María Martínez Gómez
2020-08-21 10:51:34 +02:00
committed by Ana María Martínez Gómez
parent 2d1e7946e3
commit 3e52c7de23

View File

@@ -37,4 +37,4 @@ class Offset(Feature):
class Mnemonic(Feature):
def __init__(self, value, description=None):
super(Mnemonic, self).__init__(value, description=description)
super(Mnemonic, self).__init__(value.lower(), description=description)