Commit Graph

4442 Commits

Author SHA1 Message Date
zonkzonk
fe7e1fe089 remove a hg reference in install-rev 2014-05-08 01:47:22 +02:00
zonkzonk
772f9756aa remove a hg reference in update.sh 2014-05-08 01:46:33 +02:00
Ilya V. Matveychikov
8167a31d8a tms320: remove unicode symbols from the c55x opcode table 2014-05-08 01:42:39 +02:00
pancake
773b033620 Fix negative/huge mallocs in PE parser and fix invalid fd close 2014-05-08 01:32:06 +02:00
Jody Frankowski
3ff35276bb Fix -Wformat warnings. Use ut64 instead of uint64_t where needed. 2014-05-08 02:12:20 +04:00
pancake
aa1cfa62cb Fix overflow in search hits 2014-05-07 23:49:36 +02:00
Ilya V. Matveychikov
12fd2dffbd tms320: add XACS/XACD fields parsing for the x55x
It was surprising for me that these fields are not parsed properly. Found that
by crafting test cases in radare2-regressions.

Also, opcode table for the c55x was slighly incorrect. Hope, next patch will fix
that confusion.
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
f225edde45 tms320: fix c55x opcode table
This patch fixes c55x opcode table and solves the problem with parsing of 2 or
more similar instructions that differs in some bits. Mmatching algorithm doesn't
takes into account wildcard mask length.

It leads to bad situation where first instruction match may complete successfull
but the second instruction, which in turn has more presicely mask, doesn't be
looked up:

       INSN1 with mask AAAA xxxx BBBB	(matched by wildcard mask)
       INSN2 with mask AAAA CCCC BBBB

Here the 'xxxx' is a 4-bit whildcard mask, 'AAAA', 'BBBB' and 'CCCC' is 4-bit
values.

The solution is to rebuild tables sorting items by the wildcard mask length
ascending.
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
d25b5511dc tms320: add c55x table generator script 2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
91ebf19666 tms320: fix invalid k12 field parsing for c55x (in some cases k12=k4+k8) 2014-05-07 23:43:28 +02:00
Anton Kochkov
2add8d4429 Fix CID 1211169 2014-05-08 01:38:17 +04:00
Anton Kochkov
e4fbfe20d5 Fix CID 1211163 2014-05-08 01:38:17 +04:00
pancake
65d7da74c7 Handle dbg.bep=? 2014-05-07 23:21:34 +02:00
inisider
ceee413bb3 fix message in eprintf() in r_bin_pe_init_sections() and Issue #666 2014-05-07 14:20:31 -05:00
deeso
0c3add7ee0 Moving the bin binding to the appropriate locations 2014-05-07 14:04:14 -05:00
pancake
b1349f8b14 Merge branch 'master' of https://github.com/radare/radare2 2014-05-07 16:32:53 +02:00
jvoisin
280068268b Fix CID 1135188 2014-05-07 13:43:31 +02:00
jvoisin
6c7dc17b36 Fix CID 1134630 2014-05-07 13:36:32 +02:00
jvoisin
a45deea1f7 Fix CID 1134593 2014-05-07 13:33:20 +02:00
jvoisin
fdeef9c07f Fix CID 1195075 2014-05-07 13:24:59 +02:00
deeso
03cff1625a Fixing missing get_vaddr function in bin plugin elf64 2014-05-06 23:51:22 -05:00
Ilya V. Matveychikov
5c382ded05 tms320: add dasm initialization to ANAL module 2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
8405091eb0 tms320: add some ANAL cases for the c55x 2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
70afe92c81 tms320: fix instruction syntax (space missed) 2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
dfac2f9f0c tms320: fix error with c55x SSDD fields decoding 2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
a8bb021882 tms320: don't use hash sign with hex numbers for c55x
The only one rigth thing to do with hex numbers is to precede
such a numbers with '0x', not the '#' (beat me).
2014-05-07 02:52:04 +02:00
pancake
d138f61816 Add r_num_as_string() in '?' and in disasm as comments 2014-05-07 02:51:04 +02:00
Anton Kochkov
9da2a88428 Fix CID 1134921 2014-05-07 00:45:32 +04:00
jvoisin
224052dd8a Fix CID 1135071 2014-05-06 19:39:07 +02:00
jvoisin
8fadad1f1f Fix CID 1134944 2014-05-06 19:30:12 +02:00
jvoisin
4d7d5f4aed Merge pull request #882 from montekki/fix_meta
Fix meta
2014-05-06 18:22:50 +02:00
Fedor Sakharov
22b581a4a1 cmd_meta: "CC text", "CC*" and "CC-" work 2014-05-06 20:19:29 +04:00
Fedor Sakharov
339877abc9 meta: If type is comment, access key at meta.C.addr instead of meta.addr 2014-05-06 20:17:54 +04:00
Fedor Sakharov
75c1c3cb8d cmd_meta: Move Ch Cs Cd Cm Cf processing to a separate function 2014-05-06 17:00:41 +02:00
Fedor Sakharov
8485d196aa cmd_meta: Move CC handling to separate function 2014-05-06 17:00:16 +02:00
Fedor Sakharov
5be78c87c7 cmd_meta: Removes Cv command 2014-05-06 17:00:13 +02:00
Fedor Sakharov
71f8572921 cmd_meta: Removes Cz command 2014-05-06 17:00:09 +02:00
Fedor Sakharov
b58e27a68a cmd_meta: Move Cl functionality inside CL. 2014-05-06 17:00:05 +02:00
Fedor Sakharov
1f9d8be632 dwarf: Fix dwarf source search. 2014-05-06 16:44:01 +02:00
Fedor Sakharov
14efa3cdef disasm: print no newline in case of dwarf comments 2014-05-06 16:44:01 +02:00
pancake
213edb513f Fix all segfaults spotted by my fuzzing tests on MACH0 2014-05-06 12:48:21 +02:00
Skia
b1b90852be Implement a more efficient r_list_add_sorted 2014-05-06 11:25:30 +02:00
Skia
52b7f19029 Remove r_list_get function 2014-05-06 11:25:22 +02:00
pancake
d9e684a7ce Fix #877 - nullderef in cmd_info 2014-05-06 11:17:03 +02:00
condret
5de3a28205 Fix CID 1211171 2014-05-06 10:56:44 +02:00
Adam Pridgen
eb533343e8 Fixed double free in r_core_fini 2014-05-05 22:22:23 -05:00
Adam Pridgen
baf8ead86f Update bin info for binfile being set in the environment 2014-05-05 22:07:01 -05:00
pancake
aac9538103 Remove RCons dependency for RSocket 2014-05-06 04:07:26 +02:00
condret
239fc6cd34 stop using rcons in rap-server 2014-05-06 04:01:11 +02:00
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00