Skip to content

Commit

Permalink
Fix spelling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Jan 9, 2024
1 parent 6a2f8a2 commit 90d46e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions v2/transform/EXECodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion v2/transform/Sequence.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand Down

0 comments on commit 90d46e9

Please sign in to comment.