Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd_cmp does not honor endian #22933

Closed
riptl opened this issue May 13, 2024 · 0 comments
Closed

cmd_cmp does not honor endian #22933

riptl opened this issue May 13, 2024 · 0 comments

Comments

@riptl
Copy link
Contributor

riptl commented May 13, 2024

Environment

Mon May 13 02:48:40 PM UTC 2024
radare2 5.9.1 32253 @ linux-s390-64
birth: git.5.9.0-199-g1f8298bca5 2024-05-13__11:08:53
commit: 1f8298bca523e5a4c4f5058986c1b3148d8c42b4
options: gpl -O? cs:5 cl:2 make
Linux s390x

Description

c? behaves differently on big endian

Test

(Note that bins/elf/ls is LE)

[XX] /home/ripatel/radare2/test/db/cmd/cmd_c cmd_c4
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -NN -Qc 'c4 0xfa1e0ff2
?e ---
c4* 0xfa1e0ff2
' bins/elf/ls
-- stdout
@@ -1,3 +1,9 @@
-0x00005ae0 (byte=01)   f3 ' '  ->  f2 ' '
+0x00005ae0 (byte=01)   f3 ' '  ->  fa ' '
+0x00005ae1 (byte=02)   0f ' '  ->  1e ' '
+0x00005ae2 (byte=03)   1e ' '  ->  0f ' '
+0x00005ae3 (byte=04)   fa ' '  ->  f2 ' '
 ---
-wx f2 @ 0x00005ae0
+wx fa @ 0x00005ae0
+wx 1e @ 0x00005ae1
+wx 0f @ 0x00005ae2
+wx f2 @ 0x00005ae3
@trufae trufae added this to the 5.9.2 - neatrunner milestone May 16, 2024
@trufae trufae closed this as completed in c2d6648 May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants