Commit Graph

19897 Commits

Author SHA1 Message Date
Paul I
9ebbe7251b sys/meson.py: add missing makedirs() (#12127) 2018-11-12 08:26:38 +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
077b341a16 explicitly sign all bitfields 2018-11-11 16:10:15 -08:00
Lowly Worm
80d87b9be4 fix format string called with too few arguments 2018-11-11 16:08:28 -08:00
Lowly Worm
b90cb5da65 fix allocation so there is enough space for string allocation 2018-11-11 16:02:46 -08:00
Lowly Worm
8885dc4fd1 Call to gmtime is potentially dangerous, replace with gmtime_r 2018-11-11 15:53:08 -08:00
Riccardo Schirone
a6a04332f8 Correctly allocate strings when filtering them ##bin
* bin/filter: correctly allocate strings when filtering them

Directly reallocate strings when filtering them, because it is very hard for
the caller to know before hand the correct size of the string otherwise. The
patch uses r_str_ APIs to makes this easy.
2018-11-12 00:04:41 +01:00
dav1901
b6c3425610 Change void to RCore (#12125) 2018-11-12 00:03:06 +01:00
Paul I
3b8e0a585c Meson: add r_crypto headers to r2 dist 2018-11-11 22:07:43 +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
8f03b2a42f Use quoted includes in r_crypto.h 2018-11-11 15:08:47 +01:00
Khairul Kasmiran
2683db4708 Removed trailing whitespace 2018-11-11 20:10:38 +08:00
Florian Märkl
77d80106e6 Protect task->refcount by tasks lock 2018-11-11 12:11:48 +01:00
Stefan Ilic
a5b01f34ab Fix uninitialised section name (#12106) 2018-11-11 10:46:40 +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
pancake
161625dc25 Fix assertion for bitcode mach0s ##bin 2018-11-10 02:41:18 +01:00
Riccardo Schirone
3b2a1de77e Cannot extract reg args if no calling convention is present ##anal
some archs do not even have a default calling convention, so let's just
skip them for now and print a log. It means we probably need to
implement other things to make arguments analysis work on those archs.
2018-11-10 02:36:51 +01:00
Khairul Azhar Kasmiran
8946ddd284 af-* removes jmprefs as well ##anal 2018-11-10 02:14:34 +01:00
Riccardo Schirone
0e688d5660 Implement load_buffer for mdmp and fix RList asserts ##bin 2018-11-09 19:10:30 +01:00
pancake
14fd07d5db Add --without-libuv and companion flags in ios-static-appstore.sh ##build 2018-11-09 18:14:47 +01:00
David CARLIER
29ef8a53b0 self plugin is now working in DragonFlyBSD ##port 2018-11-09 17:38:09 +01:00
pancake
d2c7275155 Add magic signatures for llvm bitcode and xcode symbols 2018-11-08 17:29:43 +01:00
Khairul Azhar Kasmiran
4a5048f7f4 Enable invalid insn notification in fcn_recurse and remove warn-near-end break ##anal 2018-11-08 16:22:24 +01:00
Florian Märkl
1f14da28d5 Add CCf* 2018-11-08 15:06:30 +01:00
Maijin
59362823d4
Cdj to contain size of the data fix #12085 (#12086) 2018-11-08 08:14:13 +00:00
dav1901
a88fc63da3 Fix minor api usage error 2018-11-08 00:33:49 +01:00
dav1901
b7731eb824 Fix control flow issue 2018-11-08 00:33:49 +01:00
teresy
944aec4512 Remove redundant continue in for loops 2018-11-08 00:33:14 +01:00
pancake
f1f391df36 Fix #12082 - infinite loop when loading PE ##bin 2018-11-08 00:30:48 +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
dav1901
e25a5b6222 Fix two minor memory overruns 2018-11-07 18:14:08 +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
Maijin
d7b84ca4b9 Add pfj Z format ##print 2018-11-07 12:41:27 +01:00
Grant Iraci
7c80aca14b Handle alias returns and delay slot for SPARC ##anal 2018-11-07 12:14:37 +01:00
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