diff --git a/v2/transform/EXECodec.go b/v2/transform/EXECodec.go index 7f7109a7..ed70b586 100644 --- a/v2/transform/EXECodec.go +++ b/v2/transform/EXECodec.go @@ -408,7 +408,7 @@ func (this *EXECodec) forwardARM(src, dst []byte, codeStart, codeEnd int) (uint, instr := int(binary.LittleEndian.Uint32(src[srcIdx:])) opcode1 := instr & _EXE_ARM_B_OPCODE_MASK //opcode2 := instr & ARM_CB_OPCODE_MASK - isBL := (opcode1 == _EXE_ARM_OPCODE_B) || (opcode1 == _EXE_ARM_OPCODE_BL) // inconditional jump + isBL := (opcode1 == _EXE_ARM_OPCODE_B) || (opcode1 == _EXE_ARM_OPCODE_BL) // unconditional jump // disable for now ... isCB = (opcode2 == ARM_OPCODE_CBZ) || (opcode2 == ARM_OPCODE_CBNZ) // conditional jump //isCB := false @@ -505,7 +505,7 @@ func (this *EXECodec) inverseARM(src, dst []byte) (uint, uint, error) { instr := int(binary.LittleEndian.Uint32(src[srcIdx:])) opcode1 := instr & _EXE_ARM_B_OPCODE_MASK //copcode2 := instr & ARM_CB_OPCODE_MASK - isBL := (opcode1 == _EXE_ARM_OPCODE_B) || (opcode1 == _EXE_ARM_OPCODE_BL) // inconditional jump + isBL := (opcode1 == _EXE_ARM_OPCODE_B) || (opcode1 == _EXE_ARM_OPCODE_BL) // unconditional jump // disable for now ... isCB = (opcode2 == ARM_OPCODE_CBZ) || (opcode2 == ARM_OPCODE_CBNZ); // conditional jump //isCB := false diff --git a/v2/transform/Sequence.go b/v2/transform/Sequence.go index dc254446..a94a842a 100644 --- a/v2/transform/Sequence.go +++ b/v2/transform/Sequence.go @@ -168,7 +168,7 @@ func (this *ByteTransformSequence) Inverse(src, dst []byte) (uint, uint, error) if err == nil && swaps&1 == 0 { if len(dst) < int(length) { - err = errors.New("Inverse tranform sequence failed") + err = errors.New("Inverse transform sequence failed") } else { copy(dst, in[0:length]) }