Commit Graph

19858 Commits

Author SHA1 Message Date
David CARLIER
327fcfa9ed Little code simplification for ptrace/debug code. (#12077) 2018-11-07 11:32:18 +01:00
Riccardo Schirone
d6fd896a65 Remove other unused functions in RBin and make others static ##refactor 2018-11-07 10:52:32 +01:00
Khairul Azhar Kasmiran
ba2db3a733 pdf sparse honors anal.jmpmid + afb+ fills op_pos array (x86 only) ##anal 2018-11-07 03:04:01 +01:00
David CARLIER
11127f0c76 Minor code cleanup for BSD 2018-11-07 00:34:16 +01:00
David CARLIER
9b3075b137 Support DragonflyBSD build and backtrace ##port
including backtrace support. the manpage mentions FreeBSD 10 release
and DragonflyBSD has different versioning, and radare not into
their port tree yet anyway, it might safe enough.
2018-11-07 00:31:00 +01:00
pancake
109d2f4f20 Fix usage message regression in the afn command 2018-11-06 22:21:48 +01:00
lzutao
b790439e28 Cast arguments to ut8 when feeding ctype.h functions ##refactor
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.

References:
 - C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5
2018-11-06 13:40:00 +01:00
pancake
865ec593b1 Dont make those reg profile dupes fatal 2018-11-05 16:55:34 +01:00
pancake
3738a97623 Fix several asserts and crashes when loading invalid reg profiles 2018-11-05 16:55:34 +01:00
radare
de309af4d6
Another minor cleanup in RBin and add R_TIME helpers 2018-11-05 16:38:41 +01:00
David CARLIER
2bb99cd10d Little leak fix into event and add fortune message 2018-11-05 16:01:41 +01:00
Khairul Kasmiran
d3881eaf12 Added the missing x86 check in r_anal_fcn_bbget_in() 2018-11-05 22:33:22 +08:00
lzutao
c42eb07241 Fix shellcheck warnings in capstone.sh 2018-11-05 14:00:33 +01:00
pancake
0b8c850869 Add new axff command (xrefs from function) ##anal 2018-11-05 12:08:27 +01:00
Stefan Ilic
4e8eed0158 RBinSection now lives in the heap ##refactor 2018-11-05 11:52:40 +01:00
Iru Cai (vimacs)
17b24cf4e3 Improve MSVC detection and demangling ##bin
* Fix language type detection logic in r_bin_load_languages()
* Set language as msvc when an import library that has "msvcp" is found
* Demangle symbols that have a dll name such as sym.imp.*.dll_*
2018-11-05 11:42:23 +01:00
pancake
3b8161039e Improve pid_to_task and handle =!pid ##debug 2018-11-05 11:30:56 +01:00
Riccardo Schirone
936512916b Another RBin API cleanup ##bin
* remove R_API from functions not used outside of RBin module
* move not-exported functions to a separate private header
* move bin_private in i/private.h
* fix and use R_IPI
* fix mips_assemble
2018-11-05 11:25:31 +01:00
Khairul Azhar Kasmiran
3facb9cd15 Check addrs 1-by-1 in pdf sparse code ##analysis 2018-11-05 10:14:31 +01:00
Khairul Azhar Kasmiran
a0844ef2c3 Honor anal.jmpmid in r_anal_fcn_bbget_in (fixes test and bug in pdr and graph) ##anal 2018-11-03 19:59:10 +01:00
Bet4
28fcfeb389 Fix some spawn args escape bugs ##debug
This reverts e973deadca commit dd4ad11379
2018-11-03 19:57:05 +01:00
Maijin
29504f8ed1 Remove legacy issue templates and use modern one's ##docs 2018-11-03 13:15:44 +01:00
gordon-quad
d2102956cd Add support for shift-arrows in st and rxvt-unicode ##console 2018-11-02 18:44:43 +01:00
Khairul Azhar Kasmiran
95773cdc30 Fix #10420 - Enable anal.jmpmid and support overlapping bbs ##anal
* anal.jmpmid: Added proper overlapping bb support (inc. for loops)
* Fix for multi-byte nop sled test
* No else after return
* Use r_anal_bb_is_in_offset()
2018-11-02 18:30:14 +01:00
sivaramaaa
bc4b5933d2 Improve array indexing in disassembly ##anal 2018-11-02 18:27:45 +01:00
David CARLIER
b4e2ebd031 NetBSD - self:// protocol support. (#12038)
Final nail on the coffin, here now the NetBSD much closer to
FreeBSD workflow.
2018-11-02 13:15:22 +08:00
David CARLIER
cce39b7ec9 Following up on porting self:// to BSD. (#12031)
* Following up on porting self:// to BSD.

Here the OpenBSD support, unfortunately not storing the path
but the proc mapping lookup is simpler.

* refactoring
2018-11-01 19:13:15 +08:00
Maijin
bbab838658
Remove aae dup and enable anal.types.constraint in aaaa ##anal (#12029) 2018-11-01 11:27:20 +01:00
sivaramaaa
d824b6dc9b Improve function param detection by removing func-number from module_func-number (#12027) 2018-11-01 13:15:48 +08:00
Riccardo Schirone
6945016035 Small optimization and bugfix when auto-renaming functions ##anal
* anal/fcn: add function to RFlagSpace when adding it to RAnal
* make sure to add the flag in the right flagspace
2018-10-31 17:57:05 +01:00
pancake
ab76c43084 Fix assert found by aar in linux /bin/ls ##assert 2018-10-31 14:45:56 +01:00
Khairul Kasmiran
7b01b96f90 Change a TODO comment 2018-10-31 20:14:12 +08:00
pancake
c0ce0015e8 Fix assert in main-less bins after aa ##analysis 2018-10-31 12:58:23 +01:00
pancake
e2d21a36ea Add lock-screen menu option in visual panels 2018-10-31 11:50:57 +01:00
Khairul Azhar Kasmiran
d2fe951130 anal.jmpmid: Continue analysis after jump to middle of instruction ##anal 2018-10-31 11:47:17 +01:00
pancake
3e98d0f778 Fix #11237 - Handle -@ in rasm2 as an alias for -o 2018-10-31 11:45:50 +01:00
pancake
278879131b Add stack.reg and handle pP in Vppc ##visual 2018-10-31 11:34:23 +01:00
David CARLIER
c48d474fa8 Little code cleanups/var scope reductions 2018-10-31 09:46:22 +01:00
radare
35a5c42a52
Add LL command to lock screen ##visual
* Clear terminal backbuffer
* Password not saved in command history
* Show timestamp of last attempt
* Do a random sleep after every read to avoid time attacks
* ^Z is disabled
* Can be used from shell `r2 -qcLL --`
2018-10-31 01:52:08 +01:00
sivaramaaa
b9d2da86a2 Use op->val instead of op->ptr in cmp [mem], imm ##anal 2018-10-31 01:06:51 +01:00
David CARLIER
0e1bfe275e Adding self proc support for FreeBSD ##port
At least for now only supporting FreeBSD, going through proc maps differ between BSD flavors.
2018-10-30 23:50:36 +01:00
fcasal
7117f2a76c Use fastcall in emustr on function calls ##disasm 2018-10-30 23:43:28 +01:00
Maijin
13bfc1e56f Remove unused functions in iosections ##refactor 2018-10-30 23:14:00 +01:00
BlaCoiso
0b8879c599 Fix visual panels crash on Windows ##windows 2018-10-30 23:11:55 +01:00
a1ext
0ac6582659 Fix heap overflow in long asm lines /via radareorg/cutter#803 ##disasm 2018-10-30 22:55:39 +01:00
Giovanni
6ad16dcd8b /Cd is now using a proper bitmask to search the values ##search 2018-10-30 17:50:51 +01:00
Arnau
9c9cc84b56 Fix some minor details in the README 2018-10-30 17:50:09 +01:00
Khairul Azhar Kasmiran
5bcaf483cb Add missing FITFCNSZ in r_anal_fcn_split_bb ##anal 2018-10-30 16:44:47 +01:00
radare
6bd61d0224
Fix last gf 4byte write overflow in ELF ##bin 2018-10-30 16:44:10 +01:00
Guillaume Valadon
f8fa075a5e Improved hashbang error message (#12006) 2018-10-30 16:42:07 +01:00