leberus
6b1a46be23
Add: Generate Coredump - added support for threads and x86 ( #5104 )
...
* Add: Generate Coredump - added support for threads and x86
* Fix: debug_native.c allow coredump for i386 too
2016-06-09 22:23:39 +02:00
Jeffrey Crowell
1b1578e25e
fix accidental commit that broke hex2int
2016-06-09 18:40:52 +00:00
Jeffrey Crowell
98d258339a
more r_util comments
2016-06-09 18:16:47 +00:00
Jeffrey Crowell
b4c39b5b35
begin adding some documentation to r_str functions
...
r_util needs some documentation if it is to be unit tested.
2016-06-09 17:42:27 +00:00
Jeffrey Crowell
4d5630ed30
make r_str_replace_char_once actually do only once
2016-06-09 00:11:59 -04:00
Jeffrey Crowell
a25ef5b3bb
remove duplicate char counting functions in r_util
2016-06-08 16:40:44 +00:00
pancake
10bbfc7d22
Trim strbits by block
2016-06-08 11:51:52 +02:00
Jeffrey Crowell
a1bdabf787
fix offbyone in r_str_bits64
...
manifested in odd numbers having leading 1
2016-06-08 01:48:43 -04:00
Jeffrey Crowell
0e688df308
style fixup for str.c r_util.h
2016-06-08 01:39:07 -04:00
Jeffrey Crowell
f92b37956a
fix eval command truncating binary to 8 bits
...
closes #4975
add new function r_str_bits64 to convert any number to a 64bit binary
value.
2016-06-08 01:31:55 -04:00
pancake
0845add4cf
Implement relocs for ELF-powerpc
2016-06-07 00:12:45 +02:00
pancake
608b79d2b4
Finally fix the build on osx-ppc
2016-06-06 17:30:07 +02:00
Karol Harasim
c1eb8253c2
Add support for 'pf [size]D' ( #5063 )
2016-06-06 10:36:09 +02:00
oblique
f06e11b6f4
Fix warnings ( #5078 )
...
* Fix gcc warnings
* Fix strtoull return
2016-06-06 00:33:11 +02:00
pancake
d3394d5a7a
Fix latest 28 COVs
2016-06-02 03:19:31 +02:00
Rene Laemmert
2740e74e49
added cursor to undo seek history ( #5054 )
...
* added cursor to undo seek history
* cleanup the mentioned parts
2016-06-01 12:16:00 +02:00
pancake
7ab3bbb91c
Fix some trailing spaces in pf
2016-06-01 12:13:09 +02:00
pancake
2bd189255e
Remove trailing spaces in px
2016-05-31 21:23:55 +02:00
Karol Harasim
b226545595
Fix use before initialization. ( #5052 )
2016-05-31 17:17:31 +02:00
Karol Harasim
cdd4f70814
Add support for pch (2 byte C dump mode) ( #5047 )
2016-05-31 13:35:31 +02:00
oblique
be4b061eda
r_str_ansi_crop: Reset color on new line ( #5048 )
...
Fixes #5036
2016-05-31 11:50:12 +02:00
pancake
e458901033
Fix jmptbl regression
2016-05-30 15:30:55 +02:00
pancake
cd776862ef
Fix some trailing spaces in pc
2016-05-30 13:19:03 +02:00
pancake
4de809061a
Add MJMP optype, pxt command and enhance anal.jmptbl for x86-64 (wip)
2016-05-30 04:18:48 +02:00
NikolaiHampton
2c50dd0c59
Memory efficient implemenation of Levenshtein Distance for radiff2 (add -V)
...
Implemented the iterative two matrix row version from here: https://en.wikipedia.org/wiki/Levenshtein_distance
and here: http://www.codeproject.com/Articles/13525/Fast-memory-efficient-Levenshtein-algorithm
Memory usage was originally 200Gig for a couple of 100K files ~(sizeA*sizeB), now about ~(sizeB*2)...
2016-05-26 11:03:01 +02:00
Sven Steinbauer
547f8bbc5c
Infer fixes Round 2 ( #4993 )
2016-05-24 22:22:15 +02:00
pancake
d9636a9738
Fix some more clang analyzer warnings and cleanup
2016-05-24 14:54:34 +02:00
pancake
c36b299073
Fix some null deref and rarun2 chroot escape vuln
2016-05-24 12:32:45 +02:00
Álvaro Felipe Melchor
fb52d91d95
fix oob in seek line
2016-05-23 22:07:32 +02:00
Sushant Dinesh
cf456f4414
Fixes to ESIL ( #4951 )
...
- Reverted ADD and ADC to set flags based on internal variables
- Fixed calculation of carry and zero flags from internal vars
- Revert "ESIL: add floating point instructions (#4794 )"
This reverts commit 964d12b392 . Since we
decided that floating point operations will be implemented using separate
ops, these unions are no longer needed. This commit introduced a regression
in setting esil->old and esil->cur
- Style fixes
2016-05-23 16:39:54 +02:00
pancake
6c35a016cf
More fixes fore core-linux
2016-05-14 17:32:04 +02:00
pancake
4de93b2703
Fix coredump file generation
2016-05-21 15:11:16 +02:00
pancake
1aff4b141d
Fix #4959 - Fix linewrap in Vv
2016-05-20 17:11:29 +02:00
Sven Steinbauer
901b145f33
Inline r_swap_* functions [ fix #4895 ] ( #4902 )
2016-05-18 10:13:26 +02:00
Álvaro Felipe Melchor
f6a0cfbcb9
fix pxw endian issue
2016-05-16 23:05:06 +02:00
dequis
5d6c3ac947
libr/util/sys.c: Wrap the other backtrace() call with an #ifdef
...
I accidentally broke musl builds with that workaround.
2016-05-16 21:52:05 +02:00
Anton Kochkov
49912c0226
Do not use backtrace if it's not available
2016-05-16 12:42:49 +03:00
dx
cbac4c38e1
libr/util/sys.c: Avoid malloc() calls in the signal handler ( #4896 )
...
Using functions like malloc() in async signal handlers is unsafe, and
may result in deadlocks.
Turns out that backtrace() is not safe either because its initialization
code uses dlopen() and malloc() and others, but this can be workarounded
by calling it once outside of a signal handler.
2016-05-16 04:06:59 +02:00
pancake
d9cdd29268
Fix endian issue in crc16 and crc32
2016-05-16 02:08:59 +02:00
pancake
a2fb171a37
Add R2PM_WWWROOT, update www-t and add http.homeroot r2 var
2016-05-16 00:59:29 +02:00
pancake
1ea99fd31c
Update to acr 0.10.2 and show HOST BUILD TARGET in REPORT
2016-05-15 23:02:59 +02:00
pancake
23dcb486ea
Fix some minor memory leaks, Properly make check_fcn public
2016-05-15 02:43:10 +02:00
pancake
942e3e0da5
Fix #4862 - Fix all pending covs
2016-05-15 02:04:40 +02:00
Riccardo Schirone
1c7119401a
core/graph: improve layer assignment algorithm
...
It should fix some layer problem on some binaries like ls-linux64 and in
the presence of self-loop. The previous algorithm could assign the same
layer to two nodes that are connected with an edge (and it should never
happen, because they have to be on different layers).
This patch uses the topological sort of a graph to assign the layer.
2016-05-14 10:37:55 +02:00
Joshua J. Drake
fad425ec06
Fix perror calls that already pass the function name
2016-05-14 08:42:56 +03:00
Joshua J. Drake
83a76b7158
Propagate location information in perror
...
The "r_sys_perror" function previously would use "perror" on UNIX resulting in
location information of the "perror" callsite being shown. Renaming
"r_sys_perror" to "r_sys_perror_str" and replacing the original identifier with
a macro ensures that the displayed information is useful.
Further, this addreses a TODO that makes this functionality work on both
Windows and UNIX by moving these macros outside of the UNIX #if. The (now)
"r_sys_perror_str" is already implemented for both platforms. Let's use it!
2016-05-14 08:42:56 +03:00
Álvaro Felipe Melchor
647b4f29b5
Fix #4808
2016-05-13 21:52:28 +02:00
Riccardo Schirone
d9e3a290c1
libr: fix compilation warnings
...
libr/util/graph: add some comments to the API
2016-05-13 09:57:55 +02:00
Rakholiya Jenish
a13d46b295
fix CID 1355197, 1355198 and 1355199
...
cleanup
Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-12 23:10:37 +02:00
pancake
35ec317f2f
Support shift << and >> in RNumCalc
2016-05-11 00:28:42 +02:00
Riccardo Schirone
15c1197636
util/print: use screen_bounds to store the first non visible address
2016-05-10 22:15:24 +02:00
pancake
cf94e318ac
Fix #4795 - pcp for > 256 blocks
2016-05-10 00:39:31 +02:00
pancake
eabe6512f2
Fix #4815 - Implement HexII print format (ref: http://corkami.googlecode.com/svn/trunk/src/HexII/ )
2016-05-10 00:18:21 +02:00
Damien Zammit
964d12b392
ESIL: add floating point instructions ( #4794 )
2016-05-07 12:32:06 +02:00
Rakholiya Jenish
3019bb477c
Add support for punycode via woE and woD and rahash2
...
Also add aes-cbc support by getting IV from user
2016-05-07 12:31:13 +02:00
Damien Zammit
af0a865d9f
WIP - Totally remove host endianness dependence
...
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
pancake
1f7db90e41
Priorize keystone plugins and other random changes
2016-05-02 02:46:01 +02:00
Andrey Torsunov
60de2dc6b4
Fix couple of memory leaks. Issue #2772 . ( #4725 )
2016-04-28 10:47:50 +02:00
pancake
032969927d
More powerpc build fixes
2016-04-27 01:08:12 +02:00
Andrey Torsunov
99832fca3d
Fix path escaping. Issue #4660 . ( #4709 )
2016-04-25 15:18:58 +02:00
Damien Zammit
1a593a6318
GDB debug for lm32 architecture ( #4696 )
...
Signed-off-by: Damien Zammit <damien@zamaudio.com>
* Missing a couple of things in previous commit
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-04-24 23:13:00 +02:00
pancake
6f446b003f
Fix #4664 - wopD on large number
2016-04-21 23:18:31 +02:00
NaveenBoggarapu
4c04b98b47
few memory leaks fixed
2016-04-13 21:55:48 +02:00
Rakholiya Jenish
27fba6fa10
Add crypto plugin for base64 and base91
...
update error occurence.
2016-04-13 10:34:55 +02:00
Álvaro Felipe Melchor
3c98a3acf1
Fix #4567 , #4566 and oob write
2016-04-09 21:13:31 +02:00
Álvaro Felipe Melchor
8009d35f13
Fix #4576 - thx revskills
2016-04-09 17:07:20 +02:00
Anton Kochkov
5b75d4cac7
Fix CID 1353770, 1353769
2016-04-06 00:55:20 +03:00
Daniel Domínguez
71beec242e
Coredump generation for Mach0 binaries
2016-04-05 12:03:59 +02:00
Anton Kochkov
9904f6ae3b
Fix CID 1353779
2016-04-05 11:50:53 +03:00
Álvaro Felipe Melchor
b0c6ae4409
Fix #4295 and #4155
...
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
pancake
32162ef393
Add r_buf_new_file API
2016-04-04 22:30:11 +02:00
Lukas Dresel
cb60759219
Removed unnecessary r_lib.h dependency in r_util.h
2016-04-04 21:26:20 +02:00
pancake
d706552d2f
Fix #4517 - double free in strbuf
2016-04-04 21:25:03 +02:00
pancake
474fa51da7
Fix #4512 - Fix segfault in pdf with asm.emu
2016-04-04 17:13:07 +02:00
pancake
740e43eadd
Fix some segfault and consistencies
2016-04-04 01:59:30 +02:00
pancake
cb9315b86f
Fix #4466 - null in pf*x
2016-04-03 01:43:16 +02:00
Jeffrey Crowell
8afbe7527f
remove double lock
2016-03-31 14:21:23 -04:00
pancake
354b9efbf2
Add ?E clippy echo and use it in ????
2016-03-30 12:44:56 +02:00
pancake
d092be54e2
API fixes for bochs and honor sandbox
2016-03-27 13:43:51 +02:00
Mizari
59d614edf1
Added drw/arw command + r_reg_arena_set_bytes
2016-03-22 11:48:42 +01:00
pancake
895a966884
Do not diff function strings, increase memlimit
2016-03-22 01:31:10 +01:00
pancake
b56d1c01bf
Show header for pxd1 and pxd2
2016-03-21 11:18:09 +01:00
pancake
182db54e57
Fix off-by-one in p=
2016-03-17 13:04:50 +01:00
Adr1
ab5792d132
RBin: improving versioninfo
...
Store ELF versioninfo in Sdb.
Display VS_FIXEDFILEINFO for PE.
2016-03-16 18:10:49 +01:00
pancake
a842ae428c
Colorful entropy bars
2016-03-14 12:08:05 +01:00
pancake
21fecbaf87
Some more p= fixes
2016-03-13 02:31:13 +01:00
pancake
fd5c8d17fe
Refactor the p=X, honor current seek and better ascii bars
2016-03-13 01:30:28 +01:00
Riccardo Schirone
a10e2ce131
util/p_format: fix "pfj q"
2016-03-08 13:07:10 +01:00
Álvaro Felipe Melchor
ee988122de
fix oob read when doing aae
2016-03-06 23:15:42 +01:00
Adr1
611c3d1752
RBin: Display File Version info
2016-03-04 01:15:56 +01:00
pancake
7a1993b057
Fix str_case regression
2016-03-03 11:45:04 +01:00
pancake
35af84c978
Implement pxd[#] for signed num dumps
2016-02-27 18:36:28 +01:00
Jeffrey Crowell
b0fcdb386e
fix crash in pf ? (foo)0
2016-02-26 15:35:02 -05:00
pancake
c545af6fbf
Honour asm.ucase with asm.filter on filtered local vars
2016-02-25 22:36:26 +01:00
pancake
490689c3ac
Fix r_lib_type to string
2016-02-23 13:10:35 +01:00
pancake
b5b548b1b3
Encode only non-printable chars
2016-02-23 00:00:55 +01:00
pancake
5d7421e355
Fix #4064 - asm.decode (null) issue
2016-02-22 23:21:29 +01:00
pancake
522d30aea2
Fix regoff_t conflict
2016-02-21 03:45:41 +01:00
pancake
100df3bb32
Better MIPS32BE ELF relocs, add Rx regs in mips.cs and add scr.wheelnkey, nN defaults to flag now
2016-02-21 01:56:50 +01:00
pancake
35e6a4d958
Bump version for git and ios builds
2016-02-20 22:16:28 +01:00