Commit Graph

8726 Commits

Author SHA1 Message Date
Young-X
99641414fd Fix multiple potential vulnerabilities (#12113)
* bin_xtr_fatmach0.c: fix memory leak in function extractall

Signed-off-by: Young_X <YangX92@hotmail.com>

* check return value of r_list_newf in function oneshotall

Signed-off-by: Young_X <YangX92@hotmail.com>

* ufs: prevent memory leak

Signed-off-by: Young_X <YangX92@hotmail.com>

* minix: prevent memory leak

Signed-off-by: Young_X <YangX92@hotmail.com>

* jfs: fix memory leak in grub_js_find_file

Signed-off-by: Young_X <YangX92@hotmail.com>

* r_anal_plugin_free: fix null pointer deference for para a

Signed-off-by: Young_X <YangX92@hotmail.com>

* fix null pointer deference in function fix_back_edge_dummy_nodes
since ptr from and to may be NULL

Signed-off-by: Young_X <YangX92@hotmail.com>
2018-11-12 12:08:24 +01:00
Lowly Worm
96d8e82f69 silence warning about mismatched types 2018-11-11 16:48:17 -08:00
Lowly Worm
a408573ecf const modifiers on function return types are useless 2018-11-11 16:18:18 -08:00
Lowly Worm
fb4f221f8c const modifiers on function return types are useless 2018-11-11 16:11:36 -08:00
Lowly Worm
b90cb5da65 fix allocation so there is enough space for string allocation 2018-11-11 16:02:46 -08:00
dav1901
b6c3425610 Change void to RCore (#12125) 2018-11-12 00:03:06 +01:00
Khairul Azhar Kasmiran
68122dc27e Support overlapping basic blocks in anal.endsize ##anal
* af-* uses r_anal_del_jmprefs() instead
* anal.endsize supports overlapping basic blocks
* Further specify cond in r_anal_trim_jmprefs()
* Add x86 checks
2018-11-11 17:28:36 +01:00
Amith Venugopal
7f1877abe2 Fix #12116 - Implement bytesize for pvj ##print 2018-11-11 17:24:24 +01:00
Florian Märkl
77d80106e6 Protect task->refcount by tasks lock 2018-11-11 12:11:48 +01:00
pancake
59d7a92f8c Implement cmd.hexcursor feature ##visual
* Adds an RCoreBind in RPrint
2018-11-11 01:53:14 +01:00
pancake
6c7bfd846a Add help in wtf!? and add bitcode magic signature ##magic 2018-11-10 02:44:24 +01:00
Khairul Azhar Kasmiran
8946ddd284 af-* removes jmprefs as well ##anal 2018-11-10 02:14:34 +01:00
Florian Märkl
1f14da28d5 Add CCf* 2018-11-08 15:06:30 +01:00
radare
d8269a9e2b
Use ht to query strings for the cfstrings ##bin
* Fix va/pa issue in cfstrings
* Add many more asserts and fixed some bugs with wrong use of apis
* 6x faster loading times for fruity apps
2018-11-07 23:57:24 +01:00
Riccardo Schirone
08e5b4aaad Refactoring RBin.open/close and RBinOptions ##bin
* r_bin_close should be r_bin_file_close
* moved bin/open.c into bin.c
* set BinFile id in r_bin_load_io
* use r_bin_open_io instead of r_bin_load_io
* also prefer RBinOptions instead of multiple arguments
* rename r_bin_load to r_bin_open and use RBinOptions
2018-11-07 17:22:41 +01:00
radare
71053f17e9
Move trie, mixed, slist into Sdb's Attic, and DES from util to crypto ##refactor 2018-11-07 17:18:14 +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
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
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
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
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
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
Maijin
bbab838658
Remove aae dup and enable anal.types.constraint in aaaa ##anal (#12029) 2018-11-01 11:27:20 +01: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
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
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
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
Guillaume Valadon
f8fa075a5e Improved hashbang error message (#12006) 2018-10-30 16:42:07 +01:00
radare
1880a96d8d
Fix regression in /rc and avoid repeated errors ##search (#12005) 2018-10-30 15:23:28 +01:00
Maijin
34abfd6d64
Remove all S commands ##refactoring 2018-10-30 13:23:18 +01:00
Álvaro Felipe Melchor
0a7690933c Add new function prelude for ARM thumb ##anal 2018-10-30 12:40:25 +01:00
Maijin
93b59643d8
Better om* output (#11989)
Better om* output
2018-10-30 12:36:01 +01:00
Khairul Kasmiran
f6f35c8d2b Extended a comment 2018-10-30 17:39:38 +08:00