86 Commits

Author SHA1 Message Date
Álvaro Felipe Melchor
84e871e456 Fix #5476 - fix UAF executing twice izz~:0 2016-08-28 17:36:18 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
pancake
e971fd810e Implement dmh* and fix some indents in previous commit 2016-07-06 23:59:29 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
Sushant Dinesh
cf456f4414 Fixes to ESIL (#4951)
- Reverted ADD and ADC to set flags based on internal variables
- Fixed calculation of carry and zero flags from internal vars
- Revert "ESIL: add floating point instructions (#4794)"
  This reverts commit 964d12b392afedb87d7ba29db62f51aa8e51af2c. Since we
  decided that floating point operations will be implemented using separate
  ops, these unions are no longer needed. This commit introduced a regression
  in setting esil->old and esil->cur
- Style fixes
2016-05-23 16:39:54 +02:00
Damien Zammit
964d12b392 ESIL: add floating point instructions (#4794) 2016-05-07 12:32:06 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
pancake
40ab1e2be6 Fix #3701 - Implement r_num_tail for dcu 2015-11-17 22:38:01 +01:00
pancake
a916a735e9 Fix #3682 - Handle 'x' char values by RNum 2015-11-12 00:20:37 +01:00
pancake
a870a9f788 Refix for #2889 - that was nasty 2015-07-08 18:33:29 +02:00
Anton Kochkov
679a1d2531 Replace strtoull() to _strtoui64() for MinGW 2015-04-05 02:12:41 +03:00
Anton Kochkov
0c9d3a9a29 Various Cygwin/MinGW fixes 2015-04-05 00:56:56 +03:00
pancake
274bdce6c9 Enhace r-num-units() and show size of dm maps 2015-02-23 10:39:56 +01:00
pancake
ccffbeb9c8 Fix #1567 - Show error when trying to divide by zero 2014-11-07 12:16:29 +01:00
pancake
7b9d13bbc3 Fix 'afc' (code complexity), fix nulltype xrefs and some helps 2014-06-19 01:11:53 +02:00
condret
70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
Adam Pridgen
5bb7ddef66 Added listing for binfiles, selection by binobject ids, selection by binfile ids, and deletion by bin object ids 2014-05-13 21:54:18 -05:00
pancake
728dd81352 Add objc.pl to import ObjC class info into r2, enhace arm.cs and more
- Fix @@ flagname*
- Fix precision bug in r_num_units()
- Better ARM Thumb code analysis (still pretty basic)
2014-05-14 03:53:22 +02:00
pancake
d138f61816 Add r_num_as_string() in '?' and in disasm as comments 2014-05-07 02:51:04 +02:00
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
Anton Kochkov
dff80a870b Fix CID #1134716 2014-04-25 05:18:29 +04:00
deeso
a1e81a4cbd refactored some of cmd_hash 2014-04-20 17:22:51 -05:00
pancake
571ba82ab6 Many bugfixes related to 'drx'. Still not working on linux 2014-01-11 23:48:55 +01:00
pancake
30ebc8b8b3 More work to make zip plugin work 2013-11-14 23:22:56 +01:00
pancake
1d8bd40ace Use sscanf again. strtoull is broken (fix testsuite) 2013-11-13 02:30:00 +01:00
pancake
42a8bb440e Fix #345 - fix some segfaults in yank and num.c 2013-09-05 05:10:57 +02:00
pancake
342e5db5ec Fixes for r_num_to_bits() 2013-10-11 04:25:46 +02:00
pancake
5cc7466191 Enhace rasm2 -D output 2013-07-08 03:38:44 +02:00
pancake
5c40488acc Fix .ia* issues when demangling c++, Fix visual hexa
Fix recent regression with scr.cols -> hex.cols
Minor fix that was causing some nasty r_num parsing
Show demangled symbol/imports names as comments
2013-04-16 19:48:59 +02:00
pancake
ad0f93e8c9 Add r_num_units and hash list is no longer hardcoded
Added ?o (octal) and ?u (units) new commands
Minor random code cleanups
2013-04-08 09:38:23 +02:00
pancake
ff36a72088 Update sdb, not found warn in r_config_get
Fix core_config_init ciclic dependency issue
Add support for 0b... expression as well as ...b
Update to sdb 0.6
2013-03-27 00:17:32 +01:00
pancake
ba3ad8112a ELF parser more permissive, add 'fsr' and other fixes
Make ELF loader more permissive
Add 'fsr' to rename flagspaces
Fix parsing issue in 'yy'
Fix crash in r_num
2013-03-07 23:47:41 +01:00
pancake
5f4623ed46 Fix some bugs appeeared during the training course
Fix segfault in "rasm2 'xor e'"
Fix overflow in 'ad@esp' when long strings are analyzed
Fix null pointer check in r_num
2013-03-07 13:08:05 +01:00
pancake
242b820647 rahash2 accept multiple files, fixes for http_client and r_num_rand 2013-03-03 17:28:06 +01:00
pancake
5d67033220 Support == in conditionals, Add r2 -C to connect 2013-03-03 06:00:57 +01:00
pancake
97484a7b6c Add conditionals, 'dsi' to continua !, Fix bindings build
Added r_num_conditional function to stop the instruction set. I is accessible in vuu¡
2013-03-03 05:03:48 +01:00
pancake
2bcee70f41 Fix r_num_irand(), add pI command, support http.port=0 as random 2013-01-25 03:47:09 +01:00
pancake
a4c8b96e20 Added 'fj' command, multiple @ per command and more
Support multiple @ for a single command (define offset+bytes)
Add 'fj' command to show flags in json format
Use monospaced font in vdoc
More work on the webui
2013-01-16 12:17:14 +01:00
pancake
4d22fcb806 Implement VA (Visual Assemlber), readline with callback and chs
r_cons_readline now have a callback api
r_num_chs() to convert from disk CHS to real address.
2012-12-22 02:37:01 +01:00
pancake
48f710abe8 Share RBinJavaObj to RAsmJava plugin, better java and fixes in config
Some more work to get java support back (analysis, disasm, bin share)
Honor ordinal field in java r_bin methods
Fix segfault in 'af*' on FreeBSD (thanks idwer for reporting!)
Fix some valgrind warnings
Better io.maxblk handling
Fix div by zero when blocksize is 0
Fix disasm lines when no function and extra code comments
2012-12-20 11:31:38 +01:00
pancake
2134da8d08 Fix http.sandbox, Fix segfault in rnum, update lungo 2012-12-03 04:28:05 +01:00
pancake
0b5d2ef737 Fix comparison commands ??, ?!, ?+ and ?- 2012-12-01 00:15:19 +01:00
pancake
e495421782 Initial implementation of 'ad' (analyze data)
Force tid=pid when tid=-1 in r_debug_select()
Add support for 16bit mov in x86.nz assembler
2012-11-20 03:59:00 +01:00
pancake
8ea25c4a46 Use RNum in RAsm, fixes for segoff and better disasm
Reference of RNum in RAsm (use flags in 'wa/pa'!)
Use RNum in x86.nz plugin
Rename scr.segoff to asm.segoff
Fixes for segmented addressing resolution
Honor lineswidth in disasm
Remove rabin2 -p flag in help and manpage
Fix disasm.c loop for small blocksizes and invalid ops
2012-11-16 01:34:26 +01:00
pancake
7ee7f936db Fixes parsing bug in java class and and rbinelfFixes in java class and and rbinelf)) 2012-11-14 04:57:56 +01:00
pancake
6dadd63c4b Ad od scr.col and cjange more settings
Fix parsing of segmented addresses
Move hud to shlr/hud
Add r_cons_print_clear () for delayed 'clearscreens'
Add blankline option to RCons
Add scr.segoff to show prompt as segmented or not
Add scr.colpos to choose the position of cmd.cprompt
Deprecate old flags code
2012-11-14 03:25:32 +01:00
pancake
884d35027d Fix segfault in ragg2 -e xor 2012-09-22 18:35:02 +02:00
pancake
fdb25ffa03 * initial import of dummy dwarf support
* handle eval cuando escribes una y otra vez
* add support for [bracket] comma-separated list for controversial
  - add api to push-back states
* Added uleb128 api in r_util
2012-06-28 01:27:40 +02:00
pancake
3877483e88 * Fix possible use of uninitialized memory in r_num 2012-06-15 15:39:04 +02:00
pancake
9bc3812ae8 * Add r_bin/mz plugin (old EXE binaries)
* Fix parsing of cs:ip values in r_num_calc
2012-03-07 01:34:57 +01:00