249 Commits

Author SHA1 Message Date
pancake
e641318973 Fix a bunch of bugs reported by clang-analyzer 2017-04-17 19:59:14 +02:00
Khairul Azhar Kasmiran
d9d839147e Revert to old coloring for asm.filter'd flags (#7192)
* Revert to old coloring for asm.filter'd flags

* Fixed r_parse_filter output for pc relative addrs when color is involved

* Small fix to prevent oob memory access

* Proper handling if esc char not found
2017-04-04 15:00:21 +02:00
alvarofe
643267ab67 Fix some warnings when compiling 2017-04-02 12:43:25 +02:00
Giovanni
4715f1e2b9 fixed crash on cmask due bad args (#7188) 2017-03-31 10:22:57 +02:00
Srimanta Barua
eea0d7c494 Fixed findNextNumber and filter (#7161) 2017-03-27 19:43:56 +02:00
Srimanta Barua
2ce093b23d Added display of strings in disassembly for PIC binaries (#7112)
* Added refs to disassembly

* Added comments for lea references

* Bug fixes

* arm and mips tests

* Fixed merge conflicts
2017-03-27 04:48:55 +02:00
pancake
4ceb55fa86 Fix null deref in mips pseudo introduced recently 2017-03-24 10:42:37 +01:00
Giovanni
1a5ffd5221 Fix sparc regressions, ahi s and pd@x 2017-03-24 02:42:31 +01:00
radare
bda3afbf3b Fix asm.pseudo when asm.cmtright=0 2017-03-20 23:43:34 +01:00
Riccardo Schirone
084d5c1217 libr/parse: add another view for function variable/arguments (#7048) 2017-03-17 11:54:34 +01:00
Maijin
84dd98732c Fix #7041 - Enhance var/local display (#7042)
Fix #7041 - Enhance var/local display
2017-03-16 14:05:32 +01:00
Srimanta Barua
21e051fafe get_pc_from_stack for computed refs 2017-03-07 20:39:30 +01:00
Roi Martin
8734b3ea4b Fix findNextNumber() in r_parse when scr.color=false (#6888)
Fix #6752
2017-03-03 10:58:36 +01:00
Giovanni
272786852b Fix PPC ESIL Emulation 2017-03-02 00:29:29 +01:00
Giovanni
f921298d4a Fix #6800 - Removed useless case (and warning) 2017-02-19 00:20:33 +01:00
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00
Sven Steinbauer
e8e9287c12 New asm.relsub enhancement 2017-02-03 09:53:57 +01:00
pancake
0af4092ee4 More fixes for the emscripten build 2017-01-29 23:54:10 +01:00
Anton Kochkov
257ff5c2c7 Limit the scope for *mask() in PPC 2017-01-29 23:18:24 +03:00
Giovanni
e005a3c4fc Bad key length fix for des-ecb & patched building issues (#6602)
* Bad key length fix for des-ecb

* fixed bad char
2017-01-29 00:50:45 +01:00
Álvaro Felipe Melchor
bce5edfae3 Fix some warnings in parse_ppc_pseudo.c 2017-01-28 17:35:00 +01:00
Giovanni
1da79cf791 [MIPS] Patched nonspaced instructions (like syscall) 2017-01-28 12:53:21 +01:00
Giovanni
9ae6280dac PPC pseudo bad parse due missing uppercase letters & PPC emu (due mistake) (#6573) 2017-01-24 18:52:48 +01:00
Giovanni
a0c7ae8131 Implement asm.pseudo for PowerPC
* Added most of the standard ppc instructions, missing some altivec and complex instructions
* fixed rot instructions.
* Fixed inv_mask[32/64]
2017-01-24 17:07:11 +01:00
pancake
33f7ef8ede Fix #6144 - asm.capitalize do not uppercase locals 2016-11-07 05:21:49 +01:00
Álvaro Felipe Melchor
1660cee325 Fix #5824 - ahi s endian issue 2016-11-02 22:49:36 +01:00
pancake
196e5a763c Add ik* command to load bin headers info, and use Cf for that 2016-10-27 23:51:22 +02:00
pancake
94d47c79bb Completely remove all references to list.h 2016-10-27 13:33:27 +02:00
pancake
d41b577106 Fix #5924 - r_flags -> r_flag 2016-10-27 01:07:58 +02:00
Giulio De Pasquale
69ecf6f528 Added early returns (#6002) 2016-10-20 18:58:57 +02:00
pancake
1f2f3f2394 Honor varsub and relsub with asm.ucase for parse.arm 2016-10-18 01:49:32 +02:00
pancake
22dddd9704 Fix #5975 - Honor asm.varsub and asm.relsub with asm.ucase 2016-10-18 00:55:10 +02:00
pancake
c3bd6a6a10 Add r2pm ls|cd 2016-10-02 00:37:09 +02:00
Álvaro Felipe Melchor
f807f13fca Fix relsub for arm and esil 2016-10-01 12:05:32 +02:00
pancake
bfbc5c2f7f Fix #5874 - Implement asm.relsub for arm.cs 2016-09-29 11:25:18 +02:00
Greynad
6ecc34b2c0 add support for jb instruction in pseudo asm (#5818) 2016-09-21 16:04:21 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
496da56a9e Fix sys/ios-static.sh 2016-09-12 20:52:12 +02:00
Vlad Ivanov
19d4154e39 anal_xtensa: initial ESIL support 2016-09-01 22:50:28 +02:00
pancake
46cec371db Fix asm.filter parse issue for m68k 2016-08-11 02:32:23 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
sdlf
96858ac1e9 Some improvements for arm pseudo code (#5370)
* Fix logical typo scanning for separator

The test would only accept ] as a separator. This was ok for
expressions like:

  r2 = [pc + 8]

But would strip the terminating ) in:

  if (r1 == 0

* arm/pseudo: fix typo /halt/half

* arm/pseudo: fix spacing before byte/half

it is now consistent with the other instructions and
have a space after the '=' also consistent with vmov/vdif.

* arm/pseudo: fix ldr/str

The following str instruction:

  str r0, [r4, 0xc]

Would produce the broken pseudocode:

  [r4 + 0xc] = r0 + 0xc]

With this change we get the expected:

  [r4 + 0xc] = r0

We need to handle 2/3 parameter instructions
differently for ldr/str. By doing this the
special case checking for [ is no longer needed.

* arm/pseudo: add a couple of XXXXs variants

these were arbitrarily selected based on the sample
i have been looking at.
2016-07-25 05:16:51 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
Ahmed Mohamed Abd El-MAwgood
b31dd80724 Args/vars the last commit (#5245)
renaming afa, afv and afe to afvb afvr, and afvs respectively
making arguments analysis obeys e anal.vars
improving the json format for args/vars
fixing varsub to use the new comands for x86 and arm
fixing var commenting commands to use the new commands var configuration
2016-07-01 16:15:29 +02:00
Ahmed Mohamed Abd El-MAwgood
3bac42eda7 Improving variables on ARM (16, 32, 64) (#5146)
removing argument detection extension used in af now args are seperately detected by afCa
aa = af + afCa
using aliases as well as real registers
rewritten varsub
Fixing some of Arm esil and optimizing them for arg/var detection
2016-06-20 15:22:09 +02:00
pancake
1629dd2b64 Remove two unused fields in RAnalOp and some deadcode 2016-06-17 14:26:24 +02:00
pancake
f96f00d62d Fix #5158 - Merge r_db into r_util 2016-06-17 12:19:16 +02:00
pancake
24aec5be8c Fix all latest COVs 2016-06-07 10:03:04 +02:00
pancake
4f51606b6d More osx-ppc build fixes.. 2016-06-06 16:55:15 +02:00
Ahmed Mohamed Abd El-MAwgood
7f48af3332 re construction argument/var commands (#5082)
afa for base pointer arguments/vars
afe for stack pointet arguments/vaes
afv for registers
fixing the J and \0 suffix
using the right register indexer
fixng the negative offsets of afa
fixing the afa afe afv views of pdf
fixing errors in aa
fixing the stack bases arg/var
fixing the varsub
fixing afa*
fixing afat
making afx- space neutral
enabling register renaming at varsub
updating the built-in help
adding r_reg as dependency for r_parse
2016-06-06 00:33:42 +02:00