Neven Sajko
d8784641ee
Add parentheses in macros where needed for safety ( #11290 )
2018-08-30 13:16:50 +02:00
David CARLIER
892bd97e51
Fix #11275 - wasm read stack overflow ( #11295 )
2018-08-30 13:13:18 +02:00
radare
40b5ab41db
Fix some wrong ESIL expressions for x86 ( #11302 )
2018-08-29 18:35:00 +02:00
Neven Sajko
634f7e54d0
remove unused define ( #11277 )
2018-08-27 21:40:39 +02:00
Fangrui Song
e2df259a8e
Fix some warnings ( #11271 )
2018-08-27 09:16:29 +02:00
Fangrui Song
97e6808335
Simplify af- & r_anal_fcn_del ( #11244 )
...
r_anal_fcn_del should not treat UT64_MAX differently.
2018-08-26 19:15:10 +02:00
Iru Cai (vimacs)
26e58cff07
Add ESIL for bt, btc, btr, bts on x86 ( #11264 )
2018-08-26 18:28:35 +02:00
Fangrui Song
9a42bbd388
esil.c: fix memleak ( #11256 )
2018-08-26 18:25:13 +02:00
Neven Sajko
810c575f6f
msp430 analysis: support emulated branch instr ( #11259 )
...
This fixes the bug with moves to PC register not being recognized as
jumps.
2018-08-26 16:03:02 +02:00
Lowly Worm
a2a7b911de
add afbc for exposing a "colorize" api to bbs; addresses #8588 ( #11224 )
...
* add afbH for exposing a "highlight" api to bbs
* fix comments from pancake/xvilka
* fix indent
* fixup help text for afbh
* rename afbh->afbc
* fixup offset of color
2018-08-25 11:11:12 +02:00
Florian Märkl
56c07e1a96
Fix a leak in VTable search
2018-08-25 11:10:53 +02:00
pancake
cba35157c6
Fix leak in RAnal.ws and make Vbe work
2018-08-23 15:07:21 +02:00
d4em0n
5bf0352dda
Fix arm jump table issue #11099 ( #11168 )
2018-08-23 14:41:58 +02:00
pancake
2eca7347d6
Implement default value for op->cycles
2018-08-23 11:40:53 +02:00
pancake
b44de89906
Add op->cycles for ARM32
2018-08-23 11:40:53 +02:00
exokortex
208361b514
fix index out of bounds ( #11197 )
2018-08-22 22:50:05 +02:00
Florian Märkl
64e3b63b3f
MSVC RTTI class name demangling ( #11171 )
...
* Add r_anal_rtti_msvc_demangle_class_name()
* Add avrD command
2018-08-22 13:15:28 +02:00
pancake
6d05365f30
Make RAsmOp use RStrBuf instead of fixed-size buffers
...
* Seems to work, but there are many things to improve and fix
* Fixed some bugs (overflow, sandbox bypass, ..)
* Exposes some memleaks and bad api usages.
* Refactor all the things! \o/
* Fix z80, tms320 disasm and x86.as
* Care about memleaks
* Support meson
* And fix more tests related to pda and pdj and m68k
2018-08-22 11:43:05 +02:00
Fangrui Song
6d115eac58
Optimize sdb_array_add_num ( #11157 )
2018-08-22 02:57:02 +02:00
Fangrui Song
3be40b9a39
meta: fix meta_inrange_{get,add,del} ( #11161 )
...
Note meta_inrange_get is only called by r_meta_find_in, which is only used when asm.meta=false (while the default is true). This is very uncommon and thus we don't see issues.
2018-08-22 02:51:14 +02:00
sivaramaaa
19e456821b
Initial work on Constrained types ( #11144 )
...
* Intial Work on Constrained types
* Use r_strbuf instead of fixed size buffers in afta
2018-08-19 23:05:54 +02:00
Fangrui Song
dcf7dc74af
Optimize sdb_const_anext and sdb_array_contains ( #11139 )
...
time (repeat 10 ~/Dev/Bin/radare2/release/binr/radare2/radare2 -p t1 -c
'' -Q a.out) => 1.35s -> 1.28s
2018-08-19 15:51:27 +02:00
sivaramaaa
b632084f3b
Replace type,*name to type *,name
2018-08-16 19:08:48 +02:00
exokortex
6a5abe63eb
fix anal->esil use after free ( #11088 )
2018-08-15 10:29:00 +02:00
Giovanni
7b3764c6fe
Wasm analisys ( #11094 )
...
* fixed several bugs on wasm anal
* fixed wasm loop opcode
* block doesnt make sense.. is a loop?
* wasm now working and making sense
* fixed a few bugs
2018-08-15 12:30:34 +08:00
pancake
afa7b1b444
Refix svc.val for arm
2018-08-14 02:46:12 +02:00
pancake
a2637e8183
Add missing op.val for ARM's SVC
2018-08-14 02:31:23 +02:00
pancake
fcc5938e9d
Fix /as for Linux/ARM32 (android)
2018-08-13 18:45:40 +02:00
pancake
d251e2f263
Fix back the wraparound circular memory on arm32
2018-08-13 16:31:42 +02:00
pancake
5add0a3d6e
Fix all the ESIL expressions for the LDR instructions (mask the value, not the address)
2018-08-13 16:31:42 +02:00
pancake
8eb1c81fd8
Show error message when trying to peek no address from memory in ESIL
2018-08-13 16:31:42 +02:00
pancake
0325120f1b
Fix ESIL expression for ARM32's LDRH instructions
2018-08-13 16:31:42 +02:00
sivaramaaa
2b2c901da7
Remove a unnecessary check ( #11065 )
2018-08-13 11:46:09 +02:00
pancake
c0b50e97cf
Improve syscall search with static analysis instead of emulation
2018-08-12 04:14:09 +02:00
pancake
1fb81e5049
Implement esil cmds for invalid and unaligned trap exceptions
2018-08-12 03:01:46 +02:00
pancake
6c2d4ecc8e
Fix #11021 - Fail when trying to use invalid register with XOR on x86
2018-08-12 00:27:24 +02:00
Andry
d8773a0b98
replace sdb_count with sdb_isempty
2018-08-11 23:24:56 +02:00
pancake
1262027b72
Fix #11018 - Add missing C types in C*
2018-08-11 23:22:27 +02:00
pancake
a61d80ff9f
Fix last coverities and the use of r_str_cmp as list comparator
...
* Fix avra test and avoid long time loading trash data in avra
2018-08-11 20:59:28 +02:00
radare
2487fa20a4
Unify /A into /a and move ?O into aom ( #11019 )
...
* Many fixes related to the argument parsing and help messages
2018-08-11 16:39:18 +02:00
sivaramaaa
0fad500788
Rename and retype arguments as argc and argv in main function ( #10994 )
...
* Rename and retype argumets as argc and argv in main function
* Generalize argument renaming
* Propgate type to register based var from it's counter part
2018-08-10 23:45:52 +05:30
Dmitriy Somov
d28fcdab5a
Fix 8466 - Added some BCD operations in ESIL ( #10958 )
...
* Fixed cdq in ESIL
* Fix #8466 - Added aaa, aad, aam in ESIL
2018-08-06 14:53:03 +02:00
radare
c1ab35df32
Fix #10800 - Honor op->prefix in op.mnem and add FAMILY_THREAD for x86 and ARM ( #10953 )
2018-08-06 10:38:02 +02:00
Dmitriy Somov
0da52c6b60
Fix #10776 - added cdq to ESIL ( #10944 )
2018-08-05 23:50:34 +02:00
Luca Di Bartolomeo
c076e12941
Add "save to file" to ag*w commands + colorize comments like ";arg1" ( #10860 )
...
* Colorize comments like ';arg1' as var type comments
* Choose path for saving dot graph
* Fixed ag? help
* Remove addr argument from most of ag* commands
* Fix: gcc warnings in r_core_graph_cmd + use vartype comments in cmd_type
Refactor: Move r_core_graph_cmd from cconfig.c to cmd_anal.c and make it static
Refactor: moved getViewerPath() to cmd_anal.c too
* Refactor: rename r_core_graph_cmd to graph_cmd
* Refactor: many small refactors of ag* commands in cmd_anal.c
Refactor: solve merge conflict in cconfig.c
Refactor: other small refactorings in cmd_anal.c
* Fix: wrong merge in cconfig.c and updated ag? help
2018-08-05 03:35:50 +08:00
Fangrui Song
ac04e2d965
meson: don't compile files that are not used standalone
...
They caused a plethora of -Wunused-function warnings.
2018-08-04 18:16:12 +02:00
Luca Di Bartolomeo
1c55911ddb
Fix: color ascii escapes in json output ( #10898 )
2018-08-03 11:50:58 +08:00
Riccardo Schirone
77b04bbfce
anal/fcn: do not use raw type, but first mask it with TYPE_MASK ( #10879 )
2018-08-01 16:08:34 +05:30
pancake
bb8f2b0773
Fix #10865 - hang_03 - skip invalid sections when marking data words
2018-08-01 00:57:36 +01:00
HMPerson1
2752b2d370
Add back old ESIL code in comments
2018-07-27 10:39:25 +01:00