Commit Graph

3252 Commits

Author SHA1 Message Date
pancake 770431ffa7 Fix #594 - random data in stdin causes segfault 2014-02-23 01:27:59 +01:00
pancake 0b2fd7c170 Show error on wrong backitcked commands 2014-02-23 01:20:20 +01:00
pancake 56d73604e2 Fix pn`?` issue 2014-02-22 03:36:45 +01:00
pancake 5666b6ce2b Refix #652 2014-02-22 02:52:56 +01:00
pancake 7e5d6894fb Fix #652 - rabin2 -g/-x/-N segfault 2014-02-22 02:48:13 +01:00
pancake 630a1f8603 Rename 'rdb' to 'projects' in ~/.config/radare2/ 2014-02-22 02:36:24 +01:00
pancake f364124f3f Fix #648 - Crash in test-r_anal.py 2014-02-22 01:58:40 +01:00
pancake d25cafe4d4 Check Java version in RBin's check(), cleanup (-44LOC) 2014-02-22 00:19:16 +01:00
pancake 235307f736 Bump sdb from git (fix memleak and adds bool api) 2014-02-21 11:00:56 +01:00
pancake 76fa3878f7 Fix #627 - cannot reopen file (hack)
- file.loadmethod needs to be fixed (overwrite method doesnt works)
2014-02-21 11:00:46 +01:00
Adam Pridgen a99cbddeaa Fix CIDS: 1182007 1182008 1182009 1182016 1182015 1182014 2014-02-20 23:51:53 -06:00
pancake 1656f20222 Fix #638 - /R segfaults (x86-udis86-esil issue) 2014-02-21 01:59:32 +01:00
pancake 22f864a373 Fix #647 - Cant found function twice 2014-02-21 01:02:47 +01:00
pancake 9b9b04576f Purge all r_lib references 2014-02-20 22:16:23 +01:00
Fedor Sakharov dff9e0d420 coff: Remove debug prints. 2014-02-20 14:01:49 +04:00
Fedor Sakharov d31c3623cc coff: Let's support TI coff and tms320 files. 2014-02-20 13:39:05 +04:00
Fedor Sakharov 1dafb6b029 coff: Use beginning of .text section if no entry point specified. 2014-02-20 13:39:05 +04:00
Fedor Sakharov 35e84450a3 Adds some fixes to support x86, amd64 and h8000 together. 2014-02-20 13:39:05 +04:00
Fedor Sakharov 7da39c208e coff: Try to detect coff. Only h8300 now. 2014-02-20 13:39:05 +04:00
Fedor Sakharov ead69073ed coff: Small fixups and coff bin object free implementation. 2014-02-20 13:39:05 +04:00
Fedor Sakharov 906bb8b3ff coff: Implement optional header, symbols and sections. 2014-02-20 13:39:05 +04:00
Fedor Sakharov 7a76f2f3e1 coff: Initial commit 2014-02-20 13:39:05 +04:00
pancake 25809a0887 Fix some warnings and indentations 2014-02-20 03:08:12 +01:00
pancake 9634cc7a44 Fix too much memory usage in analysis (thanks saelo)
- Clear some warnings
- Implement Vc. to seek to cursor instead of entry0
2014-02-20 02:11:04 +01:00
pancake fe78487fe7 Remove useless sdb instance inside RAnalFcn (thanks saelo) 2014-02-20 01:32:33 +01:00
pancake 4bb63d4c2e Use dynamically allocated *next (+15% analysis speedup + better analysis) 2014-02-20 00:43:06 +01:00
Samuel Groß d7d351416d Fixed memory leak in r_core_anal_fcn()
In certain situations the function would return early after an error
occurred without freeing the next array first, thus leading to a leak.
2014-02-20 00:34:28 +01:00
Adam Pridgen f6ac1f8d9b Fixing the coverity issues for java 2014-02-19 15:09:16 -06:00
pancake ec637cbee0 Add missing sdb_array_string() definition which caused segfault in 64bit 2014-02-19 17:57:20 +01:00
pancake 95bf944330 Bump sdb from git to fix some issues 2014-02-19 17:31:35 +01:00
pancake 07bd975e3c This `ls -l` thing is unix-specific 2014-02-19 16:34:06 +01:00
pancake 410a3ee105 Enhace `ls -l` based on zlul's patch 2014-02-19 16:19:55 +01:00
Adam Pridgen 0efd93c57a Added Constant Pool Retrieval to anal_java command extension 2014-02-18 23:11:07 -06:00
Adam Pridgen 8f72843498 Refactoring java constant pool resolution 2014-02-18 22:29:03 -06:00
pancake 12dc36ce23 Sync with sdb 0.8.rc1 - lot of api changes 2014-02-19 05:02:59 +01:00
pancake 2a9cf6c324 Fix build 2014-02-19 04:30:29 +01:00
pancake 2975c1ffd2 varsubs has been removed (too useless memory for analysis)
- must be reimplemented in sdb.
2014-02-19 04:18:25 +01:00
pancake 932e9e41d2 Fix #502 - Fix hotkey numbering for the same function 2014-02-18 16:07:21 +01:00
pancake e82b9473ec Fix #630 - Add /v1 and handle cfg.bigendian 2014-02-18 15:34:20 +01:00
Adam Pridgen 11a5b17ecf Added Sdb fields to fcn (args, rets, locals, vars, refs), and then updated thes in lib/anal/p/anal_java.c, may want to review usage 2014-02-18 01:20:14 -06:00
Adam Pridgen 5b731da686 Adding Java types to the anal types sdb 2014-02-18 00:36:19 -06:00
pancake c5191b08b5 Handle uid/gid and perms in 'ls -l' (thanks zlul) 2014-02-18 04:03:07 +01:00
pancake ba2566b251 Fix #631 - Fix /? message 2014-02-18 03:23:16 +01:00
pancake c16a3a1e76 Implement backward search /b (Thanks JudgeDredd) 2014-02-18 03:13:29 +01:00
pancake 987addf9c0 Fix build 2014-02-18 03:09:28 +01:00
pancake 4b31810d83 Fix #639 - dsf makes r2 hanging 2014-02-18 03:06:13 +01:00
pancake 99787f07a7 Bump sdb fixing signed and numeric base issues 2014-02-18 03:03:42 +01:00
pancake 6f2baaa202 Use strncmp instead of memcmp to check the io uri 2014-02-18 03:03:13 +01:00
pancake f1c2397636 Bump sdb from git again 2014-02-18 01:35:28 +01:00
Adam Pridgen e0b605e939 Added command in anal_java to calculate access flags values 2014-02-17 11:01:23 -06:00
pancake 525d4a5865 Fix #637 - bf causes segfaults if blocksize is too big #637 2014-02-17 17:25:10 +01:00
Adam Pridgen e5a2428cae zip write through is now supported 2014-02-17 09:25:58 -06:00
Adam Pridgen f2745f602d removed the NULL check for core->anal in disasm and fixed formatting in anal_java 2014-02-17 08:24:22 -06:00
pancake dfe39a0af8 Bump sdb (new query syntax changes) 2014-02-17 02:12:41 +01:00
Anton Kochkov ef4c7e5f49 Fix building 2014-02-17 02:34:58 +04: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
Adam Pridgen 27674ad03e Fixed Java crashes and case statements for anal and print disasm by adding
a reset_counter (added to RAnalPlugin) or reset method address at the beginning
of each print disasm or analysis.  Also fixed a bug in reflines.c/disasm.c,
s.t. lines will be respected when printing disasm.
2014-02-15 09:42:14 -06:00
pancake cb7c2b7f56 Fix possible null deref in bin.get_info 2014-02-14 11:51:08 +01:00
defragger 1e17319255 Add <Enter> in Visual to follow addresses of jmp, cjmp and calls 2014-02-14 00:57:30 +01:00
condret fbd6269b0c Add cpu-cycles 2014-02-14 00:53:54 +01:00
pancake 7176c89b1a Fix asm.filter issue 2014-02-13 03:11:23 +01:00
pancake 693653068e Fix strings and main offsets in PE 2014-02-13 01:48:15 +01:00
pancake a39dc8c7e8 Make dwarf work again with some minor tweaks 2014-02-11 03:50:57 +01:00
pancake f27b9a4d70 Add 'less' unix shell command 2014-02-11 02:39:59 +01:00
pancake 4eb57a0080 Implement r_cons_less() activated with ~.. suffix 2014-02-11 02:32:37 +01:00
pancake 1390d9f2d5 Add length and size fields in RBinString 2014-02-11 00:08:12 +01:00
pancake 521e2076d5 Fix string size vs string length issue in rabin2 -z 2014-02-10 17:29:55 +01:00
pancake 13cf6ef878 Reflect String type in json output (rabin2 -zj) 2014-02-10 17:24:18 +01:00
pancake e70d43fc4f Implement String Type field in RBin string search (like in r1) 2014-02-10 17:19:18 +01: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 acc89d63e6 Use even more ut* types 2014-02-10 16:56:10 +01:00
pancake c02f419237 Use ut* types in dwarf.c 2014-02-10 16:21:18 +01:00
pancake 177f20acf2 Fix #207 - Chop last newline in ^x^e 2014-02-10 16:11:08 +01:00
pancake c6ab7b759d Fix another rasm2 bug 2014-02-10 16:09:40 +01:00
Fedor Sakharov 04f346b506 dwarf: Fix some coverity issues. 2014-02-10 10:22:05 +04: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
pancake 13df599380 Fix w32 build 2014-02-09 23:41:07 +01:00
Jüri Aedla 44c58435cd Fix PE64 vaddr calculation 2014-02-09 15:04:10 +02:00
pancake 1f6ee6d546 Fix #608 - Vv endless read #608 2014-02-08 12:09: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
Ilya V. Matveychikov 3ff4490222 TMS320: fix invalid opcodes displaying
Now it show not only "invalid" string but the "invalid" string and the
opcode itself. Also, this patch fixes the problem with strange
instruction gap, that appears after the invalid opcode reveals.
2014-02-07 18:54:42 +04:00
Ilya V. Matveychikov e4226ffcea TMS320: fix defects reported by coverity
** CID 1168318:  Dead default in switch  (DEADCODE)
/libr/asm/arch/tms320/tms320_dasm.c: 552 in get_mmm_str()

** CID 1168319:  Operands don't affect result  (CONSTANT_EXPRESSION_RESULT)
/libr/asm/arch/tms320/tms320_dasm.c: 383 in get_cond_str()
2014-02-07 13:42:06 +04:00
pancake 02e4305818 Fix #603 - EOF quits visual mode 2014-02-07 03:34:40 +01:00
Jüri Aedla c4a37432bb Fix pe_get_exports: index function RVA table with ordinal 2014-02-07 03:14:26 +02:00
Ilya V. Matveychikov 41eb3808c1 TMS320: move c55x+ to C55X_PLUS namespace 2014-02-06 12:50:25 +04:00
Ilya V. Matveychikov cef957b20d TMS320: remove 64 from asm plugins bits 2014-02-06 11:07:47 +04:00
Ilya V. Matveychikov 8f40890bd7 TMS320: fill cpus field in the RAsmPlugin struct 2014-02-06 11:04:53 +04:00
pancake 59c33060af Update sdb 2014-02-06 02:31:57 +01:00
zonkzonk 2f66bc120f add some x86 instruction description (*q x86_64)
please review! should we split x86 and x86_64 ?
2014-02-06 01:01:52 +01:00
pancake 965dc53776 Fix build for tms320:c55+ 2014-02-06 00:38:01 +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
Anton Kochkov db8f8aaef1 Fix asm.cpu and anal.cpu TMS320 names 2014-02-06 02:12:34 +04: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
Ilya V. Matveychikov 64aa3b37f2 TMS320: add on-the-fly cpu changing ability
Add support for changing CPU by looking at `asm.cpu` variable
2014-02-06 01:19:23 +04:00
Ilya V. Matveychikov b2d8514c72 Add support for setting cpu value for anal module
Now, anal has it's own `anal.cpu` config value. It can be used to
support multiple CPUs handled by one analysis module.
2014-02-06 01:19:23 +04:00
jvoisin 0121ad2da2 Fix shitload of memleaks on ELF 2014-02-05 20:42:37 +00:00
Ilya V. Matveychikov abdd654f0a Add TMS320 features and decoding state fields 2014-02-05 12:47:36 +01:00