Commit Graph

687 Commits

Author SHA1 Message Date
pancake
f7bdfb2bbc Fix #575 - Thanks @montekki - plus other enhacements
- Use ↑ for utf8 backlines
- Support multiple RAnalMetas on every line in disasm.c
- Use sdb in disasm to retrieve RAnalMetas instead of api
2014-03-08 02:36:33 +01:00
pancake
784a1d2a72 Import radare2-capstone asm/anal plugins 2014-03-07 04:15:45 +01:00
pancake
7d1a63a545 Fix #585 - Segfault in echo q | r2 -d lib 2014-03-02 04:36:27 +01:00
pancake
fa7a304da3 Fix segfault in r_hex_str2bin 2014-03-01 23:17:52 +01:00
pancake
8d68b37b02 Add MOD operator '%' in RNumCalc 2014-02-26 19:42:56 +01:00
pancake
03b61eeb25 Implement AND, OR, XOR, NEG operations in r_num_calc() 2014-02-26 18:33:42 +01:00
pancake
ec58f84572 Add asm.bytespace=true config variable 2014-02-25 01:35:23 +01:00
pancake
2590e997b1 Fix r_sys_now() and implement scr.fps 2014-02-24 16:10:12 +01:00
pancake
fb3af59852 Oops. Fix typo in str.c 2014-02-23 16:37:24 +01:00
pancake
070bc97286 Fix #582 - Escape binary strings in output error message 2014-02-23 01:56:26 +01:00
pancake
9b9b04576f Purge all r_lib references 2014-02-20 22:16:23 +01:00
pancake
4bb63d4c2e Use dynamically allocated *next (+15% analysis speedup + better analysis) 2014-02-20 00:43:06 +01:00
pancake
e82b9473ec Fix #630 - Add /v1 and handle cfg.bigendian 2014-02-18 15:34:20 +01:00
pancake
c406144aa7 Fix build and implement basic, print_hexdump works with null instance 2014-02-16 03:11:41 +01:00
Zach Riggle
36518d2ae6 Fix clang build (unicode characters outside of literals) 2014-02-15 20:47:46 -05:00
condret
0a8fd8b931 Merge condret's GameBoy pull request
- Update analysis
- Add p2 (2bpp print command)
- Insert more auto comments for gb roms
- Delete mbc
- Handle gb-halt as cjmp (correct in most situations)
- Update gameboy register profile
- Add symbols for hard-interrupt-handlers
2014-02-10 17:02:43 +01:00
pancake
90264229c9 Add Vo, fixes in $sys in RAsm, new io.self plugin, initial work on preloaded r2 2014-02-10 03:31:12 +01:00
Fedor Sakharov
18d7167f63 dwarf: Implement it. 2014-02-08 14:08:07 +04:00
pancake
8b40a53080 Update sdb from git and fix 'test.cparse' 2014-02-08 03:09:03 +01:00
pancake
2c676570a9 Merge branch 'master' 2014-02-06 00:27:08 +01:00
pancake
9a099e9e9e Add RAsmPlugins->cpus and handle it in rasm2 -L <arch> 2014-02-06 00:26:17 +01:00
Ilya V. Matveychikov
969ea9b7c2 TMS320: move c55plus under the TMS320 namespace
Sorry for the huge patch, but there is nothing special. We just move
asm/arch/c55plus into the asm/arch/tms320 and add some wrappers to use
existing code base under the new namespace.

Also, we've implement TMS320 anal module that supports now c55+ only. To
be continued...
2014-02-06 01:19:23 +04:00
pancake
e7783173c7 Fix #588 drx segfault 2014-01-12 02:16:56 +01:00
pancake
571ba82ab6 Many bugfixes related to 'drx'. Still not working on linux 2014-01-11 23:48:55 +01:00
pancake
891a1e5bb8 Implement 'drx' command in RDebug plugin backends 2014-01-28 04:08:10 +01:00
pancake
579856e7b9 Implement 'wu' and add support for nocolor in 'cu' 2014-01-26 04:33:21 +01:00
pancake
4672c2d866 Fix short jmp assemble in x86.nz, add rasm2 -O <outputfile> 2014-01-26 01:58:25 +01:00
pancake
666ab166d1 Add 'cu' and 'arC', better 'cc' 2014-01-24 02:37:14 +01:00
pancake
6656f8d0fa Some more cleanup and rmeta fixes 2014-01-23 04:00:01 +01:00
pancake
99a6dec209 Fix r_file_is_directory() 2014-01-21 02:08:51 +01:00
pancake
cacb12cafc Fix opening block devices (S_IFDIR wtf) 2014-01-20 15:04:16 +01:00
pancake
802e808072 Merge libr/lib into libr/util and add r_sys_environ API 2014-01-18 02:42:23 +01:00
pancake
1066c7a4f6 Fix uninitialized string in disasm.c and do not use of strcasestr 2014-01-10 18:45:51 +01:00
pancake
aeb681ea33 Fix #503 - expand home and fix sandbox check for 'wt' 2014-01-04 12:39:12 +01:00
pancake
6c2200c80b Fix build and some warnings 2014-01-04 02:06:36 +01:00
pancake
2475dc6d04 Optimize r_anal_reflines and r_anal_data_kind (disasm is now 7 times faster) 2014-01-04 01:59:23 +01:00
David Martínez Moreno
06ed8553c6 Properly propagate LDFLAGS in libraries.
Debian fills up LDFLAGS with hardening flgs but for some libraries this
 parameter is not additive to the value from the environment but hardcoded.
2013-12-31 23:56:59 -08:00
pancake
3b3bbbb916 Add more Jamroot files and move some plugs to r2-extras 2013-12-31 15:34:27 +01:00
pancake
dba63fbd3c Add some Jam files and merge rsign into ranal 2013-12-31 05:30:39 +01:00
pancake
da33633680 Fix #491 - Project untrusted input
- Fix various project related issues
- Do not save in directories. Projects are file + file.d/
- Do not show division by zero issue (e cfg.foo=/bin/ls)
2013-12-28 02:34:15 +01:00
pancake
3a9b6c686f Fix asm/avr license and some coverity issues 2013-12-15 00:58:05 +01:00
pancake
5574d90ba1 Fix strbuf signature 2013-12-14 01:16:09 +01:00
pancake
a03dd04c42 Fix r_sys_pid_to_path for FreeBSD (thanks vsp) 2013-12-11 12:32:15 +01:00
pancake
160495aaeb Fix #440 - Invalid use of va_list in r_str_newf for huge strings 2013-12-10 00:47:23 +01:00
pancake
4bc74d0fb4 Fix 'cg' RCore's double-free issue 2013-12-09 05:23:06 +01:00
pancake
f76441b7e7 Fix some warnings 2013-12-09 04:56:13 +01:00
pancake
b97eecc06f RStrBuf setters return boolean for success 2013-12-08 02:47:55 +01:00
pancake
af6c71417a Show plugin path in r2 -hh, add r_str_rmch() inline 2013-12-04 02:35:10 +01:00
pancake
05d7188a9a Fix dynamic format string functions
- s/r_str_dup_printf/r_str_newf/g
- Add r_strbuf_setf()
2013-12-04 00:20:52 +01:00
pancake
d10d0c6516 Fixes for the strbuf api 2013-12-03 17:27:47 +01:00
pancake
8717542596 Add RStrBuf api 2013-12-03 04:46:53 +01:00
pancake
d02df0d306 Fix some issues reported by CoverityScan service 2013-12-03 00:14:59 +01:00
Adam Pridgen
519190801b Rewrote backward disassemble with a greedy backward algorithm, added a find api to rlist, label to bb struct 2013-12-02 00:09:22 +01:00
pancake
f0a45a556a Fix ^w segfault and many bugfixes for macro scripting 2013-11-30 02:47:29 +01:00
pancake
904751ce86 Fix some startup valgrind warnings 2013-11-25 00:45:18 +01:00
pancake
ceac926eb0 Fix #379 - RCons fill empty lines is wrong on utf8 2013-11-23 03:47:22 +01:00
pancake
456b72f85e Fix #380 - shell backticks segfaults 2013-11-22 18:20:15 +01:00
Adam Pridgen
a5ad388eb5 Cleaned up how the pd command process input. Added support for setting [len] [asm.arch] [bits] for all pd commands. 2013-11-22 08:45:13 -06:00
Fedor Sakharov
13547a0bbf Fix #370 - Some memory leaks
Fix memory leak in r_config_new.
  cfg->nodes->free should be a custom function that frees RConfigNode
  structure correctly, but not the ordinary free.
Fix memory leak in r_anal_new.
  In r_anal_free need to call r_meta_free to free the
  whole RMeta structure, not only it's data list.
  The r_meta_free doesn't seem to have any leak itself.
Fix leaking anal->hints.
Fix memory leaks in r_cmd_free
Fix memory leak in r_cmd_plugin_init
Fix memleak in r_lib_new
Fix memory leak in r_io_plugin_init
Fix memory leak in r_debug_trace_new
Fix memory leaks in r_io_new
Fix memory leak in r_graph_new
Fix memory leak in r_sys_getdir.
  Note: calling getcwd with dir=NULL is a Linux-specific extension
  of POSIX, not sure if works on other non-windows platforms.
Fixes a typo
2013-11-19 01:51:40 +01:00
pancake
30ebc8b8b3 More work to make zip plugin work 2013-11-14 23:22:56 +01:00
Adam Pridgen
0bc95a2fc4 Added the necessary libzip and libz files for opening zip files and reading and writing to them from memory via uri, added zip, apk, jar 2013-11-14 04:54:50 +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
1b2ba18c0e Fix #270 - ragg2 crashs on false-conditions loops 2013-11-10 04:33:12 +01:00
pancake
9bb51ca329 Implement 'pcJ' to print block in Javascript 2013-11-06 02:37:25 +01:00
pancake
3918ccd63a p6 is now an alias for p6e. And fix 'pc' help 2013-11-06 02:24:02 +01:00
pancake
1cec548b68 Fix #288 - r_str_replace() - realloc invalid next size 2013-11-06 00:30:35 +01:00
pancake
1769a767cd Fix cpp warnings 2013-11-04 04:50:37 +01:00
pancake
d0f40d6e48 Aim to fix #208 and #288 - r_str_replace issue 2013-11-04 04:38:57 +01:00
pancake
2a909d6302 Fix #300 - (64bit dr= indentation) and fix r_sys_pid_to_path on linux 2013-09-05 01:44:05 +02:00
pancake
2f76003fd0 Another fix for asm.segoff 2013-11-04 04:07:58 +01:00
pancake
497cb0e2e1 Fix #57 - 'is' does not work for attached process 2013-11-04 03:30:46 +01:00
pancake
ede55b55c4 Fix r_mem_mem and handle 'K' in visual cursor mode to see manpages 2013-11-03 13:47:34 +01:00
pancake
724630896b Fix #301 - Invalid size: 5 while disassembling x86 TE binary 2013-11-02 12:14:39 +01:00
pancake
567bccae92 Fix #302 - Visual mode seeking in w32 sleeps longer 2013-11-02 12:10:25 +01:00
pancake
d900345a66 Fix #266 - [ragg2] exit on invalid input (again) 2013-10-28 02:05:18 +01:00
pancake
8cc4809c3a Refix for #288 and do not stop on invalid reflines 2013-10-27 02:20:36 +01:00
pancake
f2ce3f277b Fix off-by-one in r_str_replace 2013-10-26 23:53:50 +02:00
pancake
a72e7d34a1 Fix another overlapped strcpy 2013-10-25 00:31:09 +02:00
pancake
a7dff22c7e Fix strcpy on overlapped region 2013-10-25 00:29:00 +02:00
pancake
d814a5b01b Fix #264 - Add a command to display changed registers 2013-10-20 02:09:03 +02:00
pancake
b1140b99aa Fix 'pu'. Add 'pxw' and fix some 'pc' subcommands 2013-10-15 00:26:17 +02:00
pancake
d8e41ac26b Fix code analysis issue (code vs data) 2013-10-12 02:19:01 +02:00
pancake
342e5db5ec Fixes for r_num_to_bits() 2013-10-11 04:25:46 +02:00
pancake
d100e603c9 Fix #157 - sandbox issue in webui
- add 'f' and ':' print formats
- fix nocolor disasm artifact
- add VW command to launch webui
- rename sN to sp (seek to previous hit)
2013-10-09 00:29:49 +02:00
pancake
653881eb3a Merge and fix jvoisin #235 #236 2013-10-04 13:57:49 +02:00
pancake
ab3c27bda3 Fix iOS build 2013-10-01 17:14:50 +02:00
jvoisin
d8603f2502 Remove spagetti code 2013-10-01 01:08:18 +01:00
jvoisin
da002cc95d Fix a memory leak 2013-09-27 18:57:07 +02:00
pancake
0f2fd99986 Fix some warnings and add a specific plugins.cfg for emscripten 2013-09-15 23:57:22 +02:00
pancake
5372d0acb2 Add 'woR' and 'dd-' commands. Update enyo and add missing PNGs. 2013-09-15 02:24:23 +02:00
pancake
ae97789986 Fix lot of warnings 2013-09-14 14:04:08 +02:00
pancake
b59b8aa7e4 Add support for @naked in ragg2 2013-09-14 00:51:42 +02:00
pancake
341da1d154 Various fixes in RRegArena and add 'dcs' command 2013-08-29 16:59:24 +02:00
pancake
a1aafc6adc Do not allow to create flags starting with a number 2013-09-07 02:39:26 +02:00
pancake
7855f4952f Initial work supporting emscripten compilation 2013-09-07 00:39:08 +02:00
pancake
65fed9b9a0 Handle '-' in 'w' commands, support comments in wF, Fixes in wp 2013-09-04 02:31:14 +02:00
pancake
e25567cb09 Implement .-. Fixes for cfg.editor and handle RCons.editor() 2013-09-04 00:35:48 +02:00
pancake
302328a76c Fix #203 - Call to a section + some more work on utf8 2013-09-03 22:45:43 +02:00
pancake
53428f374c Merge ../radare2-xvilka
Conflicts:
	libr/include/r_cons.h
2013-08-30 00:39:38 +02:00
pancake
35d7b940cb Fix utf8 issue in r_str_prefix and optimize reflines 2013-08-30 00:38:31 +02:00
pancake
a46eb958e7 Initial implementation of the wip multiline text editor 2013-08-28 03:06:10 +02:00
Anton Kochkov
2d3297e26d UTF8 arrows initial support 2013-08-28 00:26:30 +04:00
pancake
602bb70a30 Simplify shlr build and some w32 fixes 2013-08-27 01:18:42 +02:00
pancake
1dc50d359b Fix shlr/sdb build for sys/android 2013-08-27 00:52:04 +02:00
pancake
9850c0a3c3 Fix some warns and enhace GIT_TAP in makefiles 2013-08-26 01:07:21 +02:00
Judge Dredd
3b64d2fa10 fixed a bug in r_str_replace 2013-08-24 23:02:07 +02:00
pancake
e0f6f41e68 Fix w32 build 2013-08-22 00:15:05 +02:00
pancake
e6ce20dabe Fix w32 build 2013-08-19 00:41:44 +02:00
pancake
b6ae1b64f2 Add 'dpe' command to discover the path of executable from given pid 2013-08-19 00:36:17 +02:00
pancake
05df20f411 Update sdb, more work on types 't' 2013-08-13 03:23:39 +02:00
pancake
59820d6b14 Implement pointer arithmetics in 'pf', 't?' and 'td'. 2013-08-11 14:23:51 +02:00
pancake
19314bc27f Better comments in disasm, fix io->size = 0 regression 2013-07-18 23:00:38 +02:00
pancake
be46b9da31 Initial support for truecolor (xterm only)
Add e scr.truecolor variable
Add !! command to save history
Add ec: command to randomize palette
Minor rgb trash fix,
2013-07-17 19:34:27 +02:00
pancake
a1123b6a69 Added default color paletes for rcons
Added 'ecf':load colorschemes
Added VE visual menu to configure colors
r_cons_rgb_parse() needs a rewrite
2013-07-17 03:51:53 +02:00
pancake
dc8e37f420 Update sdb, simplify some makefiles 2013-07-15 02:51:55 +02:00
pancake
209ac5696c Fix '$' alias command (thanks alxchk for reporting) 2013-07-13 01:13:23 +02:00
pancake
5cc7466191 Enhace rasm2 -D output 2013-07-08 03:38:44 +02:00
pancake
0fb4c674d4 Create xdg directory before trying to use it 2013-06-27 19:21:25 +02:00
pancake
bc0104563b Initial support for runtime versioned libraries
- This check will ensure you are running the latest r2 version.
2013-06-14 02:51:33 +02:00
pancake
cdea34616d Fix some warnings 2013-06-09 02:55:03 +02:00
pancake
ced24c443d Load <file>.r2 if exists, last 3 args of 'S' are now optional 2013-06-09 01:09:47 +02:00
pancake
f52a2ac4b5 Minor visual fixes for asm.segoff=true in hexdump and disasm 2013-06-09 00:34:58 +02:00
pancake
3f1d3ba146 Better r_str_hash(), Fixes in CCa, Added ?h, Better rbin for BEOS bins
Identify Haiku binaries as 'beos' with noodle()
Fix CCa for non numeric offsets
Use sdb's r_str_hash() instead of old one (much less collisions)
Added ?h command to hash strings
CCa now appends instead of replacing comments
Do not mark as static if bin links to libs
2013-06-07 10:26:37 +02:00
capi_x
c9eb90adbc Add initial Haiku support 2013-06-06 00:21:52 +02:00
pancake
96accbd14b Begin r_io review. Fix r_socket_http query for xpcshell's httpd.js
- Added libr/io/README in order to documentate the api
- Some minor refactoring and code cleanup in libr/io
- Fix hexdump title
2013-05-31 02:09:45 +02:00
pancake
3ba48ac9ad More color theme fixes and categories (math, bin, other) 2013-05-23 12:37:40 +02:00
pancake
04bcbfd290 Fix off-by-one issues in anal comments (fixes #95 and probably #96) 2013-05-23 10:33:21 +02:00
pancake
e5cdab6d20 Fully configurable console palette for disassembly, hexdump and prompt
- Fix overflow in r_cons
2013-05-23 02:26:48 +02:00
th0rpe
a42e574954 Initial import of the c55+ disassembler (by th0rpe) 2013-05-15 16:11:15 +02:00
pancake
f6a8d7b3b8 Initial import of binr/r2agent 2013-05-11 01:58:05 +02:00
pancake
735bcc2fb9 Use r_file_abspath() and add dir.projects eval config var 2013-05-05 18:35:14 +02:00
pancake
f2c8e597d8 Add 'pcw' and 'pcd' to print C code for 32 and 64 bits 2013-05-04 02:57:19 +02:00
pancake
be02d4fc9d Initial work on the evaluable opcode analysis strings
- New command 'ae' to evaluate those expressions
- Use 'ao~code' to see the generated eval strings
- Rerefix udis86 16bit issue
2013-05-04 02:35:52 +02:00
Shane Peelar
24ccb7aabb Fixed compilation problems on Windows with MinGW-w64 4.8 2013-05-02 10:17:59 +02:00
pancake
26a7854dd6 Rewrite DEX parser 2013-04-25 03:42:17 +02:00
pancake
b77cdf33d7 Fix loading of MACH0 object files and fix build 2013-04-22 01:34:25 +02:00
pancake
6ad7ed7925 Lot of bugfixes in r_asm, x86 assembler and ragg2 -x
- Thanks Ripe for reporting
- Handle $pc in r_asm assemble
- New ops for x86.nz: sar, shl, shr, shl, rcr, rcl, ror, rol
- Fix disassembler indentation for functions
- Fix memory align issue in r_sys_run()
2013-04-22 00:01:41 +02:00
pancake
8afdf330ae List and remove projects using '-p' and '-p -$prj' 2013-04-18 09:39:37 +02:00
pancake
59670523e2 Initial transition to sdb: anal.xrefs
- Cascade core_project_save > anal_project_save > anal_xrefs_save
- Database is stored into ~/.radare2/rdb/$prj.d/xrefs
- Build libsdb properly to get access to all the api
- Use sdb from r_anal_xrefs() - needs cleanup
- Update sdb to the latest version from git
- Fix some warnings
2013-04-18 03:58: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
e71bb8d701 Rename and fix scr.{stride,cols} as hex.{stride,cols} 2013-04-16 04:11:32 +02:00
pancake
0d993c8cbd Initial working code injection with r_debug_execute() 2013-04-16 04:01:39 +02:00
pancake
96d1a1141b Fix invalid flag name filtering issue and add rax2 -t (timestamp) 2013-04-16 01:48:03 +02:00
pancake
b612d2a6b1 Fix static build (+android) 2013-04-12 02:39:46 +02:00
pancake
426873d911 Better support for macros and fix dex checksum hint
- .(fix-dex) macro defined when loading a dex
2013-04-12 01:15:00 +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
128097572a Optimize DEX header parsing. Fix 'psp' command
Added r_buf_get_at() method to avoid copies
2013-04-04 23:19:19 +02:00
pancake
5c1cd1f0ef Initial support for UTF8 in r_cons and r_util 2013-04-04 01:42:12 +02:00
pancake
7e4d92c6fb Fix some warnings 2013-04-02 12:45:16 +02:00