Commit graph

1324 commits

Author SHA1 Message Date
jvoisin
38d79c727d Some coverifix 2015-07-08 22:52:24 +02:00
pancake
05c8e5c198 Fix null deref in fatmach0's rabin2 -x 2015-07-08 19:13:30 +02:00
pancake
a870a9f788 Refix for #2889 - that was nasty 2015-07-08 18:33:29 +02:00
pancake
61eb7d3abe Fix #2889 - Fix use after free in rnum 2015-07-08 14:55:52 +02:00
pancake
41d12ff98b Fix #2880 - Fix crash in rapatch (r2 -P) 2015-07-08 14:21:43 +02:00
Riccardo Schirone
316a529a80 core/graph: fix a regression where dots are printed out of node 2015-07-07 00:54:38 +02:00
Álvaro Felipe Melchor
0fd2a3d87c Fix #2869 - oob write in r_print_randomart due to bad allocation 2015-07-05 20:44:03 +02:00
Álvaro Felipe Melchor
b794485918 Fix #2874 2015-07-05 20:44:03 +02:00
Riccardo Schirone
40e0884e57 util/graph: move adjacency lists to the RGraphNode 2015-07-03 09:40:35 +02:00
Álvaro Felipe Melchor
e5e23c2377 Fix #2808 - oob read in updateAddr 2015-06-28 02:42:33 +02:00
Álvaro Felipe Melchor
e0d89584e3 Fix #2833 - oob in r_wstr_clen 2015-06-28 02:41:09 +02:00
Jeffrey Crowell
eb1f379d14 Revert "start using wcs"
This reverts commit 731ef331f5.
2015-06-26 23:54:01 -04:00
Jeffrey Crowell
731ef331f5 start using wcs 2015-06-25 21:07:58 -04:00
Riccardo Schirone
4003e6b8ae util/print: fix a heap overflow when len is not a multiple of step 2015-06-25 02:07:17 +02:00
Riccardo Schirone
efa0ae88df util: code refactoring
* improve indentation of r_mem_copyendian and r_print_hexdump
* remove duplicated code
2015-06-25 02:07:17 +02:00
Jeffrey Crowell
ab0b035203 rewrite r_glob_str to fix #2836 2015-06-24 01:16:11 -04:00
pancake
ee4585684a oops 2015-06-21 14:10:36 +02:00
pancake
2b8e31592c Handle TARGET_OS_IPHONE and fix r_sandbox_system() issue 2015-06-21 12:47:09 +02:00
pancake
04a2718657 Add version field in plugins, and check it before loading 2015-06-21 10:09:12 +02:00
pancake
8f25a9b344 Fix iOS build, crashes in reflines, analysis issues on OSX debugger and more! 2015-06-21 00:50:53 +02:00
pancake
fa7546101a Support r_str_unescape for backspace 2015-06-20 23:40:52 +02:00
jvoisin
9a7bf7751b Coverifix 2015-06-19 21:30:57 +02:00
Álvaro Felipe Melchor
5d8ce1b4a4 Fix #2765 2015-06-17 23:25:50 +02:00
Anton Kochkov
3f6dd0c11f Fix CID 1306842 2015-06-17 14:30:43 +03:00
pancake
72215da3c1 Fix px regression 2015-06-17 11:42:44 +02:00
Riccardo Schirone
31099a3a54 util/graph: add DFS visit implementation and r_graph_del_edge/node 2015-06-17 11:22:10 +02:00
Riccardo Schirone
77a26237fe util/list: add some const to the API and adapt existing code 2015-06-17 11:22:10 +02:00
pancake
b10aa5a0a2 Initial support for loading Android ART binaries 2015-06-17 11:14:41 +02:00
Álvaro Felipe Melchor
53badd517d Fix COVs 2015-06-17 00:22:40 +02:00
Álvaro Felipe Melchor
e40fe434bb Fix #2765 2015-06-16 22:48:37 +02:00
pancake
8d0b8c6b78 Add CS command to manage meta-spaces 2015-06-15 04:19:29 +02:00
Álvaro Felipe Melchor
e58c46c0cc Fix #2737 2015-06-14 23:15:51 +02:00
Riccardo Schirone
b279f282ba Refactoring ascii art graph
util/stack: extend stack api with r_stack_size
core/graph: use RStack instead of a custom implementation
util/graph: change implementation to use lists and extend api
core/cmd_debug: avoid free r_graph_get_nodes
core/graph: rename some functions and use typedefs for graph struct
core/graph: use RGraph for the ascii art graph
util/list: add const whenever possible
util/graph: add const on r_graph_get_nodes/neighbours
core/graph,core/cmd_debug: use const
core/graph: clean the code (add comments, use const, remove magic nums)

* use r_graph_node_iter for the current node
* reset graph when reloading nodes
* on callgraph edges printing, nth should be 0
* force seek of current node when reloading nodes
* use graph_foreach_node
* core/graph: remove get_current_node because useless
2015-06-14 00:46:11 +02:00
jvoisin
6ea8a866f6 Fix two coverities 2015-06-12 23:19:14 +02:00
Riccardo Schirone
177ee3ac56 include/r_types: fix R_NEWS0 calloc usage and use it in libr/util 2015-06-12 12:48:39 +02:00
pancake
a4e5081c87 Fix w32 project open issue with abspath 2015-06-12 11:49:58 +02:00
Riccardo Schirone
49ebf0942c libr/util: reimplement graph api
libr/util/t/graph: add test
2015-06-11 22:53:48 +02:00
Riccardo Schirone
9558a2b7f8 libr/util: implement a tree
libr/util/t/tree: add test
2015-06-11 22:53:48 +02:00
Riccardo Schirone
c640e68e56 libr/util: implement a simple queue
libr/util/t/queue: add test
2015-06-11 22:53:48 +02:00
Riccardo Schirone
0b091a6c5f libr/util: implement a simple stack
libr/util/t/stack: add test
2015-06-11 22:53:47 +02:00
pancake
5954f6e046 Fix #2716 - sdb, rmkdir and console issues on w32 2015-06-11 12:12:22 +02:00
pancake
43d891503e Honor R_SYS_DIR in more places to make w32 happy 2015-06-09 13:47:45 +02:00
Oleksii Kuchma
0c57a435fc Rewrite MZ bin plugin
* Add const modifiers, fix function call style
* Add checking and using dos_file_size
* Fix number of arguments in load_bytes.
* Add check for NE, LE and LX executables.
* Fix function declaration for btree_traverse.
2015-06-08 22:18:21 +02:00
pancake
a093958b6d Release 0.9.9 - codename AlmostThere 2015-06-05 04:07:13 +02:00
pancake
d168388f5c Add pxrj command to show word refs in JSON 2015-06-04 22:58:08 +02:00
Judge_Dredd
2acf7d4a03 arbitraty number of matches in cons/less search, refactor 2015-06-04 09:21:05 +03:00
jvoisin
0c144f16bc Even more coverifixes 2015-06-02 22:59:30 +02:00
pancake
47860d67dc Remove more references to r_diff 2015-06-02 10:31:30 +02:00
pancake
2970b9817b Fix #2674 - merge diff into util 2015-06-02 01:35:12 +02:00
jvoisin
8155c6e8f2 Even more coverifix 2015-06-01 23:06:55 +02:00
Judge_Dredd
264883a097 Refactor cons highlight 2015-06-01 21:58:07 +02:00
zlowram
56be7aeee9 Fix r_list_join when list1 is empty
This also fixes the local vars definition in functions with no arguments
2015-06-01 21:48:41 +02:00
Riccardo Schirone
da2565a83d util/str: consider not visible newlines in r_str_crop 2015-05-31 20:20:31 +02:00
pancake
22c9b3f0fe Fix #2628 flags offset hashtable issue and Fix #2607 ELF relocs 2015-05-29 00:51:57 +02:00
pancake
57a0850014 Fix #2640 - crash in s/ 2015-05-28 19:38:24 +02:00
Judge_Dredd
b190fff5e2 fix for #2314 and #2312 2015-05-28 00:28:25 +02:00
pancake
2c62eab3c8 Fix ASLR baddr while fixing r_file_abspath() on UNIX using abspath() 2015-05-19 15:35:08 +02:00
emvivre
0eab267449 Fix an issue with pf Z 2015-05-18 10:47:33 +02:00
Judge_Dredd
fa57bfed27 fix CID 1297227, 1297226 2015-05-09 10:40:45 +02:00
dequis
7ce8856708 pf: fix offset/size handling of 'X' (hexpairs) type 2015-05-07 12:20:01 +02:00
pancake
0ab39f5c22 Add help for /x? and fix hexpair parsing with binmask 2015-05-07 00:46:41 +02:00
pancake
8f82e674a2 Lot of enhacements for Thumb-ESIL decode and emulation
* Added [*] and =[*] esil opcodes

Conflicts:
	libr/anal/p/anal_arm_cs.c
	libr/parse/p/parse_arm_pseudo.c
2015-05-06 02:33:48 +02:00
Skia
1b99f7126e pf: add uleb128 support 2015-05-04 10:03:58 +02:00
Skia
5633b61bc7 pf: Fix time format to GMT (not local anymore) 2015-05-04 09:52:38 +02:00
dequis
08ff4e493a Always use ut32 for unix timestamps. Also handle endianness properly
Because it turns out sizeof(time_t) is 8 in 64 bit platforms, but that
results in really broken 'pt' results, where half of the lines are
'invalid date'

Also, endianness handling was swapped in the case of 'pt' and
non-existent in the case of 'rax2 -t' (the latter actually did a weird
hack to swap endianness twice and get valid results).

Now rax2 -t supports the -e parameter to swap endianness.

The usage of r_mem_copyendian with r_print now matches what's done
in other places, with !p->big_endian instead of p->big_endian,
because 0 means swap and 1 means do nothing. Terrible function.

This also fixes some valgrind warnings about uninitialized values
(when copying 4 bytes to a 8 byte time_t)
2015-05-01 10:28:23 +02:00
pancake
a45981cb14 Fix int/double infinity constant issue in util/regex 2015-04-29 11:31:49 +02:00
Skia
e5d5a688dd Add variable length array in pf
Still doesn't work with flags
2015-04-27 09:36:32 +02:00
Skia
27b16c5636 Small pf change 2015-04-27 09:36:27 +02:00
Skia
387d177da7 Fix pf:
* JSON output works for more cases
	* Access to specific element in structure or array doesn't display garbages
any more
2015-04-26 22:41:29 +02:00
Skia
19f5cbd14b Fix #2411 2015-04-24 01:05:49 +02:00
Judge Dredd (key 6E23685A)
e1ae15b2b2 properly chop utf-8 lines 2015-04-22 11:12:19 +02:00
pancake
e137183f1d More rebranding for the android app 2015-04-22 04:50:37 +02:00
pancake
63f0dc8e3f Implement more utf8 terminal check, handle jbe in asm.pseudo 2015-04-20 15:27:05 +02:00
David Kreuter
fd63308d11 libr/util/p_format.c: fix fieldname memleak in r_print_format 2015-04-17 16:51:20 +02:00
pancake
2096e855ba Fix gs0 crash 2015-04-16 17:49:17 +02:00
Judge_Dredd
0ce2c0033c cons less chop lines to terminal width 2015-04-12 16:12:02 +02:00
pancake
4bfd019175 Fix other bugs in strpool 2015-04-12 01:12:54 +02:00
pancake
48dedef883 Fix #2355 - stringpool must honor length in realloc 2015-04-12 01:11:57 +02:00
pancake
75caca7ebe Fix w32 build 2015-04-11 20:54:31 +02:00
pancake
882a0ee164 Add --without-fork and r_sys_fork() 2015-04-11 05:00:05 +02:00
pancake
6ab06a15ba Various fixes for DEX and Dalvik support 2015-04-11 04:33:37 +02:00
Anton Kochkov
393942e18b Fix more leaking holes 2015-04-11 02:31:34 +03:00
Anton Kochkov
90fa036170 Coverity fixes 2015-04-11 01:42:30 +03:00
Álvaro Felipe Melchor
02755c1d39 Fix segfaults 2015-04-09 00:37:38 +02:00
Anton Kochkov
679a1d2531 Replace strtoull() to _strtoui64() for MinGW 2015-04-05 02:12:41 +03:00
Anton Kochkov
44aac91430 Fix MinGW build 2015-04-05 01:26:06 +03:00
Anton Kochkov
5782d67884 Fix threads on the MinGW/Cygwin 2015-04-05 01:19:28 +03:00
Anton Kochkov
e205d0da03 Do not include unistd.h for MinGW32 2015-04-05 01:09:13 +03:00
Anton Kochkov
0c9d3a9a29 Various Cygwin/MinGW fixes 2015-04-05 00:56:56 +03:00
pancake
a378082ca7 Avoid using GNU's gmt_offset 2015-04-04 02:11:08 +02:00
pancake
3b4773d602 Add time.zone and time.fmt eval vars, honor zone in pt and correct PE gmt 2015-04-03 23:24:09 +02:00
pancake
f8cea04fb0 Fix V_isual HUD in sandbox mode 2015-04-03 04:45:38 +02:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
pancake
4e136fb32f Fix #2289 - division ignored in some rnum calc ops 2015-04-03 03:25:30 +02:00
pancake
efc7ebff17 Add prgi and prgo commands to get consumed and generated bytes at gunzip 2015-04-03 03:20:04 +02:00
pancake
8d89d9af2c Fix crash in ag, memleak in iI and nullderef in hexdump 2015-04-02 20:22:24 +02:00
pancake
e20da8826c Fix #2288 - Infinite prg decompression issue 2015-04-02 01:46:25 +02:00
pancake
68c98b2b05 Remove debug printf, fix crash in rabin2 -qzz 2015-04-01 20:56:12 +02:00
pancake
14aa79eac9 Better disasm+code analysis for Dalvik 2015-03-24 00:08:48 +01:00
pancake
261a4d2faa Fix #2174 - Crash in V!! 2015-03-23 01:28:32 +01:00
pancake
2361d43034 Fix oob read crash in prl 2015-03-23 01:09:35 +01:00
pancake
ebbe450f38 Fix r2 -c 'o-*;s++' - use-after-free and other from #2220 2015-03-23 00:32:31 +01:00
pancake
ef6c71208d Fix tons of input crashes reported in #2220 2015-03-22 23:24:13 +01:00
pancake
b14bfc0be2 Fix #2185 - r2 -d shm://123 crash 2015-03-22 22:41:46 +01:00
pancake
063fca1224 Fix #2222 - Fully disable r_sandbox_create in sandbox mode 2015-03-22 16:35:02 +01:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
fenugrec
a0e354a8de Fixed some error checking + return values for r_buf_cpy() 2015-03-18 22:10:55 +01:00
fenugrec
cafcf4b0ab WIP: ihex:// plugin rework for sparse buffers & extended records 2015-03-18 22:10:54 +01:00
pancake
597f4f595b Refix android-x86 build 2015-03-18 00:59:26 +01:00
pancake
595db83d93 Add RBufferSparse API and sparse:// io plugin 2015-03-16 01:19:25 +01:00
pancake
f53cb526cd Add r_str_utf16_encode and use it in isj 2015-03-14 03:47:34 +01:00
pancake
ea7387ab72 Add 'sync-regex' command to sync libr/util/regex with OpenBSD
- Requires some manual review because there are interesting changes
  that must be checked properly. Also, OpenBSD has been notified
  about this issue, and we should update as soon as they get it
  done in master.

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778402

- In addition, Coverity reported 3 issues that must be addressed in
  OpenBSD/CVS before merge

    https://gist.github.com/crowell/6812b899164bdeed3027
2015-03-11 17:57:52 +01:00
pancake
0040f8cb44 JSONify PDB and remove useless function in r_util 2015-03-08 17:30:41 +01:00
Skia
acce30fc92 Fix pf warning 2015-03-05 23:57:32 +01:00
pancake
0d7ab6f7f0 More goodies for the V2 panels, fixes in r_str_chop 2015-03-05 23:07:39 +01:00
Skia
0e659f03dd Fix accessing specific array element in pf (#1636) 2015-03-03 01:58:55 +01:00
Skia
2662e64374 Improve byte readability in pf (#2137) 2015-03-03 01:58:54 +01:00
Skia
de0bff95c0 Add union flags 2015-03-03 01:58:54 +01:00
Skia
343af54610 Fix pf
thx pancake for breaking it there d8f96a765d ;D
2015-03-03 01:58:54 +01:00
jvoisin
600c6cfaf2 Coverifix 2015-02-28 14:32:39 +01:00
pancake
6a85593edc Fix cov in arg_escape (missing break) 2015-02-27 13:39:37 +01:00
Clément Vuchener
705e4d56bf Fixing arguments (bugs #1814 and #2117) #2143
Added proper escaping of command line
Creating a command line from arguments when debugging on Windows
Keep backslashes when not escaping a character
Assuming that the path of the binary should be in desc->name and not the command line in ptrace IO plugin
Print the backslash when it is at the end of the command line
2015-02-26 03:05:37 +01:00
pancake
274bdce6c9 Enhace r-num-units() and show size of dm maps 2015-02-23 10:39:56 +01:00
pancake
ad80aba942 Initial support for debugger memory snapshots dms. Enhace hexdiffing
- Fix linux debugger
- ccc shows hexdiffing, but only the ones that differ
2015-02-23 03:29:40 +01:00
pancake
d8f96a765d Fix android build and bin/d installation issue 2015-02-23 01:55:35 +01:00
Kamil Rytarowski
345403f0ea Honor zip configure linkage 2015-02-23 01:07:05 +01:00
Clément Vuchener
5466d221db Fixing r_sys_pid_to_path on recent versions of Windows 2015-02-22 17:07:10 +01:00
pancake
4f15b376ed Use YYYY-MM-DD format for pt 2015-02-22 00:07:06 +01:00
pancake
90b47a9f20 Drop max file size to make rabin2 -zzz happy 2015-02-20 00:58:12 +01:00
pancake
e9a3fd96d2 Add prx command -hiew-like- 2015-02-19 12:29:57 +01:00
jvoisin
a61ea4e70a Coverifix++ 2015-02-19 01:53:11 +01:00
jvoisin
7a1975bd06 Add some comments for graphs + coverifix 2015-02-17 17:03:16 +01:00
jvoisin
a193e54eac Coverifix 2015-02-17 00:34:51 +01:00
pancake
33ba03e9c0 Implement pxh and pxH. Honor endian and value size in pxq/Q 2015-02-16 02:45:12 +01:00
pancake
4c58ac2416 Initial implementation of p3 the 3D stereogram print mode 2015-02-14 04:17:34 +01:00
pancake
ebf85b56cb Initial implementation of Pn command for project notes 2015-02-10 02:13:53 +01:00
pancake
416873216c Fix symbol override and memleak in pf 2015-02-09 10:06:17 +01:00
pancake
e0d7e3271d izj strings encoded in base64 instead of uri-encode
URI encoded is not designed to handle binary data, and some implementations
verify that the resulting string is an uri or not. So it may fail if it
contains : or / chars.
2015-02-09 01:17:42 +01:00
Skia
efdefb2299 pf - Complete issue #1636: accessing specific elem in an array 2015-02-08 17:40:09 +01:00
Skia
317a173d47 pf - Complete issue #1636: accessing specific elem in an array 2015-02-08 00:22:17 +01:00
pancake
33fcd7fbcf Enhacements for DEX sections and ignore methods at 0 (wip) 2015-02-06 18:53:11 +01:00
pancake
383e225135 Fixes on top of the clang-warn-fix commit 2015-02-05 10:57:28 +01:00
Jeffrey Crowell
bf943e8729 coverifix 2015-02-05 00:29:59 -05:00
Skia
06a57bddc4 Improve pf display 2015-02-05 02:30:20 +01:00
Skia
cf5057a229 pf: Implement unions 2015-02-05 02:30:20 +01:00
pancake
33a84eb96a Add pD? and some x86.cs refactoring 2015-02-03 17:02:34 +01:00
pancake
73f8788fdb Fix /R/ valgrind warnings with x86.udis 2015-02-03 16:25:25 +01:00
jvoisin
1facea2766 Fix two minor warnings 2015-02-03 15:53:51 +01:00
Skia
c78b0968d6 Refactor pf. Function is now more clear and readable 2015-02-03 11:50:45 +01:00
Skia
92b205d3ac Fix #1342: add escaping char feature in pf 2015-02-01 02:59:14 +01:00
Skia
e713f16b28 Fix flags in pf 2015-01-29 02:59:19 +01:00
pancake
0cb78f973e Fix #2004 - filter flag names in dm* 2015-01-29 02:25:00 +01:00
pancake
8dd161efc2 Fix fdleak when dup2 returns 0 2015-01-25 12:10:08 +01:00
jvoisin
16cac50319 Coverity++ 2015-01-24 11:24:55 +01:00
pancake
d08015cf66 Add f--, fs-*, o--, enhace Po a lot
- Handle all internal information deinitialization in:
  - flags, io, core, bin, anal
- Fix w32 build
2015-01-22 02:22:29 +01:00
pancake
ac036b6301 Add Pd to delete projects, Remove rmrf util function, better project file checks 2015-01-22 00:30:19 +01:00
pancake
d76d7c1163 Fix memleak related to r_list_join() responsabilities 2015-01-21 13:33:52 +01:00
pancake
4ecf2eea6d Fix #1976 - Segfault related to use after free next to a r_list_join () in fcn.locals 2015-01-18 02:49:19 +01:00
pancake
b7c3ded3b9 Fix #1975 - Replace flags in ${} for ?e 2015-01-18 02:17:55 +01:00
Jeffrey Crowell
1fc3a177f6 Separate fortunes to fortunes.{fun,tips,nsfw}
add `e cfg.fortunetype = fun,tips,nsfw`

Add some "legacy" nsfw fortunes.
2015-01-15 10:43:09 +01:00
jvoisin
b91579d489 Ups, I forgot to add SAL in r_print_color_op_type 2015-01-15 01:37:39 +01:00
jvoisin
8ac1616daf Fix some coverity issues 2015-01-14 02:53:34 +01:00
pancake
3b3fa3584f Initial implementation of asm.reladdr 2015-01-12 00:11:06 +01:00
pancake
d713debdfc Fix left and top border issues with canvas text (nicer graphs) 2015-01-11 02:28:59 +01:00
pancake
7e1ed0608a Fix #1935 - Fix autocompletion on sandbox mode and enhace tab 2015-01-05 05:11:42 +01:00
pancake
d7fada10a2 Some work on bin.demangle 2015-01-02 02:10:20 +01:00
pancake
94bdaf75d9 Fix all pf warnings 2014-12-22 11:55:07 +01:00
pancake
c8458d3379 Fix build 2014-12-19 14:59:18 +01:00
pancake
af49b74b49 Fix #1866 - pf.a.b crash 2014-12-19 13:16:04 +01:00
Skia
58375097ae Fix coverity pf leak by cleaning the function up
CID fixed:
	1258915
	1258912
	1258911
2014-12-19 12:02:10 +01:00
Skia
4a8d7e6875 Refactor cmd_print_format into r_print_format
* Enable nested specific fields access for reading and writing
* Fix pf: json regression
2014-12-17 11:34:54 +01:00
pancake
31d1ec7349 Implement r_file_dirname and support DOS paths in r_file_basename too 2014-12-12 13:59:39 +01:00
Kamil Rytarowski
ac9af5531b Enable backtrace(3) in NetBSD >=7.0
This patch was prepared with the assistance of the upstream.
2014-12-12 00:41:19 +01:00
pancake
a7fc3eedc3 Fix crash when passing NULL to RBufRead 2014-12-11 17:05:30 +01:00
pancake
4c49708cf3 Fix #1820 - Avoid SIGPIPE in r_sys_cmd_str_full 2014-12-11 13:39:53 +01:00
pancake
3a87cc61c3 Fix support for dwarf on currentpath source files
Catch file-not-found exception when listing source lines
2014-12-10 23:21:55 +01:00
pancake
a8dc744f48 Fix #1811 - Corrupt ELF header crashes r2 - reported by @crowell 2014-12-09 04:19:16 +01:00
Kamil Rytarowski
aadbd0f868 Fix GCC warnings: array subscript has type 'char'
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
pancake
18ef89dfa0 Fix lot of overflows in the dwarf parser 2014-12-04 01:28:29 +01:00
pancake
3a31198ffd Fix #1702 - Revert and fix the dwarf/dex crashes related to uleb overflows 2014-12-01 23:44:20 +01:00
pancake
12f598d77d Fix crash in pfj 2014-12-01 23:30:32 +01:00
pancake
adce73673f Fix two ASAN crashes for pf 2014-11-26 01:03:48 +01:00
pancake
5e236429c7 Implement ^Z in RCons for prompt and visual modes (unix only) 2014-11-19 22:25:17 +01:00
pancake
41b6f99ec1 Revert "Fix several crashes in dalvik. Thanks nightmare!"
This reverts commit f6440fc526.

Conflicts:
	libr/bin/dwarf.c
	libr/bin/p/bin_dex.c
2014-11-19 12:14:23 +01:00
pancake
acf25245d9 Fix latest CIDs 2014-11-19 10:54:08 +01:00
pancake
ff72e9f0b8 Fix an overflow in r_buf_read 2014-11-19 01:08:46 +01:00
pancake
1f685fc8df Fix #1699 - Double free with aa 2014-11-18 23:00:13 +01:00
pancake
b7e1dc4354 Fix #1698 - dr rflags=cpz is now supported 2014-11-18 17:22:43 +01:00
pancake
50d1e8daa4 Fix build 2014-11-18 16:44:27 +01:00
pancake
e1e46a8b22 Fix crash in RCore.Plugin liberator 2014-11-18 16:35:54 +01:00
Jeffrey Crowell
0dd1071033 fix crash in rasm2 'add eax, /' 2014-11-18 11:46:14 +01:00
pancake
a6c1582e1a Revert dac7dbdc89 2014-11-17 16:29:31 +01:00
Julien Nabet
e20728ec15 cppcheck: fix 1 'else if' cond matches previous cond + test indice before using it 2014-11-16 18:13:06 +01:00
pancake
dac7dbdc89 rbufread is now more strict 2014-11-10 04:15:28 +01:00
pancake
587642619b Re-enable ranal2 build 2014-11-10 03:55:44 +01:00
pancake
278e63f10f Properly test RBuffer boundaries in r_buf_read_at() 2014-11-10 02:18:44 +01:00
pancake
9f570a927b Fix overrun in r_buf api 2014-11-10 02:08:32 +01:00
Skia
36cd87a6e1 Fix issue #1651 2014-11-10 01:55:09 +01:00
pancake
81f1fd41b7 Fix coverity issues 2014-11-09 18:29:24 +01:00
pancake
40f202c7ee Fix issue bad string filtering in PDB symbol names 2014-11-09 18:11:03 +01:00
pancake
ccffbeb9c8 Fix #1567 - Show error when trying to divide by zero 2014-11-07 12:16:29 +01:00
pancake
b40bce8284 Fix all latest Coverity issues 2014-11-07 10:52:44 +01:00
pancake
e530a902e5 Rollback a reggression in 'pi' 2014-11-07 05:16:33 +01:00
pancake
ff324cb682 Honor asm.filter in VV graph and 'pi' command. Maybe we need another command to avoid breaking tests? 2014-11-07 04:27:57 +01:00
pancake
87273cf144 Initial commit enhacing disasm with aop.ref and aop.refptr (x86.udis only atm) 2014-11-07 00:41:29 +01:00
pancake
619e443e7e Update for iOS 8.1 SDK 2014-11-06 11:57:51 +01:00
d0p
5bdbfd240a Fix compilation error on OS X 10.7.5 (undef symbol)
Shared libraries and bundles don't have direct access to environ. Use
the _NSGetEnviron() routine to retrieve the address of environ at
runtime. See "PROGRAMMING" section of ENVIRON(7).
2014-11-05 16:16:27 +01:00
pancake
b158a7a63b Fix rabin2 -z regression 2014-11-05 09:46:11 +01:00
pancake
dd131e15d0 Fix stack exhaustion bug in Java class parser 2014-11-05 01:31:33 +01:00
pancake
561555a595 Fix r_str_nlen for trashed symbols 2014-11-05 00:32:55 +01:00
pancake
f6440fc526 Fix several crashes in dalvik. Thanks nightmare! 2014-11-05 00:15:40 +01:00
pancake
cab0c6ae49 Fix crash in r_utf8_decode 2014-11-04 23:17:52 +01:00
pancake
4790375679 Random enhacements for RHex apis and relocs 2014-11-04 02:16:40 +01:00
pancake
8042a54077 Fix crash in access to freed memory 2014-11-03 13:36:58 +01:00
pancake
dcfb90ae94 Wip Fix r2 -d oo (workaround, because it's a race condition in fork+pid2path) 2014-11-03 11:47:51 +01:00
pancake
a9eb8da77b Fix overflow in r_asm_disassemble() and implement rip-relative refs in anal.x86.cs 2014-11-03 03:27:22 +01:00
pancake
6555402bf5 Fix warning 2014-11-01 22:12:05 +01:00
Skia
9964f3e7fa Finish pfs 2014-11-01 22:11:12 +01:00
Skia
21e40d9a73 Fix CID 1250448 2014-11-01 22:11:12 +01:00
Skia
8c19b32810 Revert "Simplify code to fix COV 1250448"
This reverts commit d49373bcb3.
2014-11-01 22:11:12 +01:00
pancake
d49373bcb3 Simplify code to fix COV 1250448 2014-11-01 10:35:30 +01:00
pancake
8e29c0ef9d Initial implementation of the & command. Bump capstone 2014-11-01 04:46:33 +01:00
Skia
897cdcd45c Add pfs to print struct size 2014-11-01 04:23:51 +01:00
Skia
367aaa878b Improve linked list display in pf 2014-11-01 04:23:51 +01:00
Skia
4c70e1aa65 Fix pf 2014-11-01 04:23:51 +01:00
Skia
f7929e1801 Add timestamp support in pf 2014-10-31 02:52:45 +01:00
Skia
b94c28b34a Fix nested struct output 2014-10-31 02:52:45 +01:00
pancake
acc0ec8263 Fix #1587 - pcJ shows dirty stuff (base64 encoded not null terminated) 2014-10-30 15:52:01 +01:00
pancake
e8140ab8bf Add r_buf_seek() 2014-10-29 22:53:51 +01:00
pancake
92b167bbdd Add r_buf_read/write methods using CUR, fix some more warnings 2014-10-29 22:12:16 +01:00
pancake
69b40d1afa Add ragg2 -n and -N and fix some bugs in r_buf and r_egg 2014-10-29 02:44:21 +01:00
pancake
8aa76e644c Add some more safety checks for RBuffer 2014-10-28 18:18:30 +01:00
Skia
e64f0458d3 Fix json output for enum, bitfield, char and byte 2014-10-28 09:59:47 +01:00
pancake
ff03dfdadc Initial implementation of 'pxr' 2014-10-27 17:23:13 +01:00
Skia
231064047c Improve enum and bitfield names in pf
Remove the use of null char for non printable chars
English fix
2014-10-26 23:55:49 +01:00
Skia
d54abd6739 Colorize the pf help 2014-10-26 23:52:56 +01:00
jvoisin
a60d82b800 Fix a lot of warnings for GCC
Less than 20 warnings remaining on my x86_64 GCC 4.9.1
2014-10-26 13:50:58 +01:00
Skia
cd4d25f92b Make json online 2014-10-26 02:18:13 +01:00
Skia
509f9558f7 Fix #1523 2014-10-26 02:47:34 +02:00
Skia
dc8e1ba712 Make pfj (JSON output) 2014-10-26 02:47:34 +02:00
pancake
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00
pancake
bf3c739d75 Fix crash for gdb:// to qemu-arm
- Fix some JamFiles
- Add config.getter callbacks
2014-10-26 01:30:17 +02:00
pancake
25927e0b60 Implement PEDA-like colors for addresses in pxw and pxq
- Uses 'ai' command to get address information
- We need to define new color palete entries for them
- We now have colors for: code, data, rodata, ascii, sequence
2014-10-24 21:31:46 +02:00
pancake
329bc84488 Add 'pfo' to open format description files 2014-10-21 11:49:33 +02:00
pancake
3a9a733ebf Implement rax2 -F (r_stdin_slurp(), r_hex_from_c())
- Update rax2 manpage
2014-10-20 00:46:59 +02:00
pancake
79c5b24bfe Fix pxw/pxq width for hex.cols=1 2014-10-19 12:18:40 +02:00
pancake
718e175892 Add $p for getpid(), hide UNKNOWN refs, 'cat' works with bigger chunk if unknown size 2014-10-18 00:25:55 +02:00
pancake
45a04948b7 Remove debug printf 2014-10-17 18:35:00 +02:00
pancake
da866539ee Fix 'oo' bug (sync rcorefile and riofile lists), Better 'ob' 2014-10-17 00:04:52 +02:00
pancake
859daf9a5b Add consonance and tango themes. Add asm.flaginbytes
* invalid instruction color is now configurable
* fixed SAR as unknown instruction issue
* Bring back dead code to render flags between the offset and opcode
* Fixes for the rasta and solarized themes
2014-10-16 01:51:48 +02:00
Maijin
7b55e920f0 Update Enum/Bitfield Help 2014-10-15 02:53:20 +02:00
Skia
8e7c4c67be Fix double bitfield and double enum in pf 2014-10-13 16:29:03 +02:00
Skia
6e0285ab90 Fix pf 2014-10-07 17:59:58 +02:00
pancake
b8532a0679 Fix crash in tms320 finalization 2014-10-02 10:11:46 +02:00
Skia
f5a150c0ed Fix pf 2014-10-01 12:05:41 +02:00
Maijin
461ffd6907 Fix #1393 and update other pf help messages 2014-09-28 01:47:57 +02:00
pancake
cde83cfd0c Add many experimental enhancements for the visual debugger
- V@ is an alias to set cmd.vprompt
- New config variables!
  stack.size = size of stack displayed in Vpp
  stack.delta = substract that delta to the stack address
  stack.anotated = use pxa instead of pxw
  scr.highlight = word to highlight by RCons
  hex.flagsz = override flag size in pxa
- Fix x86 udis anal plugin size of invalid instructions
- Fix 'hud file not found' issue
- Add 'Vdh' to set scr.highlight
- Fix V: wheel scroll issue
- Realign pxa marks if addr > UT32_MAX
- Set hex.flagsz = 9999 to cover the whole area instead of just 1 byte
2014-09-27 03:48:54 +02:00
Maijin
c3461856e2 Fix Enum moving cursor 2014-09-25 21:46:50 +02:00
pancake
0931f502ed Implement asm.demangle and bin.demangle, add 'fn' to display realname of flags 2014-09-24 03:01:18 +02:00
Fedor Sakharov
8f4b2cdf5b Fix cpp names demangling 2014-09-24 02:08:18 +02:00
pancake
fe078aef9a Little enhacement for pf enum 2014-09-23 16:12:13 +02:00
pancake
5a2c50f8dc Handle sized bitfields and enums in pf 2014-09-23 16:07:18 +02:00
pancake
931c358d46 Minor fixes for bitfield/enum 2014-09-23 15:24:56 +02:00
pancake
fef835ccb6 Fix file-mmap-write on w32 2014-09-23 10:59:52 +02:00
Skia
baf8a068b7 Fix CID 1240150, 1240149, 1240151 2014-09-23 10:25:18 +02:00
pancake
bd3b5fe636 More fixes for bitfield prints 2014-09-22 18:08:29 +02:00
pancake
d6aeae624f Implement te,tb,tk and pf E, pf B to handle enum and bitfields 2014-09-21 01:39:18 +02:00
pancake
46ccb5e361 Fix pf x? (b)ee ;pf.a crash 2014-09-20 22:58:46 +02:00
deeso
55fe0a9e9a Added command that 'bruteforces' the parsing of a class file in a blob of data 2014-09-20 19:46:21 +02:00
pancake
fc2bb2af7f Fix 4GB issue file and some more warnings 2014-09-20 15:53:29 +02:00
pancake
4c4173769b Revert "Fixing the issue where file size exceeds size of an integer":
3adb00621b
e2afa84443
0761955fdb
17cc18fad0
135c62fb5d
2014-09-20 15:33:59 +02:00
Jonathan Neuschäfer
9b5d4d53bb fix an off-by-one bug in r_isprint
Array accesses, yeah.
2014-09-18 18:56:57 +02:00
Adam Pridgen
135c62fb5d Fixing *most* warnings related to the change in r_file_slurp 2014-09-17 22:37:54 -05:00
deeso
3adb00621b Fixing the issue where file size exceeds size of an integer 2014-09-17 23:53:25 +02:00
Skia
be6f55b772 Make the [] in pf work like an array (#1349) 2014-09-17 15:58:44 +02:00
Skia
f21748d465 Make the code cleaner and more readable in pf 2014-09-17 15:58:38 +02:00
pancake
90dad36646 Fix w32 build (oops dislexia) 2014-09-17 15:37:30 +02:00
defragger
51b6112925 fixes the w32 native debugging and error messages 2014-09-17 15:26:00 +02:00
pancake
ae06dc24b5 Fix file2 and file3 fuzzed ELF files 2014-09-17 11:01:36 +02:00
pancake
dec5580bf4 Fix some ELF OOB crashes (thanks @maijin for reporting) 2014-09-17 00:09:00 +02:00
Skia
951c07b03e Make pf* work and Fix #1349 in pf 2014-09-15 23:07:01 +02:00
pancake
058cae62f2 Set new separator for nested struct in pf 2014-09-15 22:56:31 +02:00
pancake
7e37fb0131 Fix #1292 - Fix file create and write on w32 2014-09-15 03:35:02 +02:00
pancake
8be98f3d82 Use () instead of [] for casting nested structs in pf 2014-09-15 00:36:49 +02:00
pancake
3dd52c3d22 Quote the 'w' command for better write strings from pf. Need string filtering 2014-09-13 12:01:36 +02:00
pancake
1882ea8e5a Fix #1320 - crash in pf 2014-09-13 00:36:50 +02:00
Skia
ff626df236 First implementation of pf*
Doesn't work for nested struct yet...
2014-09-09 22:20:18 +02:00
Skia
164ced622b Add more types to compute the struct size in pf 2014-09-09 22:20:18 +02:00
pancake
8f6ecaa659 Fix preload on Linux and OSX 2014-09-09 12:11:23 +02:00
pancake
7fde96ea63 Add some header structs for MACH0 and fix some for ELF (rabin2 -rk '' related) 2014-09-08 12:20:50 +02:00
Jody Frankowski
cacb38ae98 Fix and clean r_inflate 2014-09-08 00:04:27 +02:00
pancake
34f6c3d06b Fix pf? 2014-09-06 04:22:42 +02:00
pancake
30acdbf50c Refactor debruijn code and make it accessible from ragg2 -P 2014-09-05 16:03:40 +02:00
Jody Frankowski
f930a97adc Unify gzip and zip 2014-09-05 15:12:40 +02:00
Jody Frankowski
8e3d7e045d Add support for both zlib and gzip streams 2014-09-05 14:10:00 +02:00
Jeffrey Crowell
213c6f2567 Add De Bruijn cyclical patterns accessible thru woD and woO 2014-09-05 14:09:52 +02:00
pancake
e161a915dd Fix #1276 - Extend 'Vd' to support more types #1276 2014-09-03 10:26:41 +02:00
Anton Kochkov
759a6345d4 Fix OS detection 2014-09-01 18:58:09 +04:00
Anton Kochkov
46e127c73a Fix wrong type specifier in eprintf 2014-08-31 16:10:38 +04:00
jvoisin
f7d6be76bd Fix some Hyask coverity issues 2014-08-31 02:10:12 +02:00
pancake
d809200fa2 Fix more memleaks 2014-08-29 16:42:00 +02:00
pancake
425013c470 Add 'pc*' command to print curblock in 'wx;s' commands 2014-08-29 12:15:21 +02:00
pancake
4ea683ba34 Initial background thread for the webserver (=h& and =H&) 2014-08-28 12:08:46 +02:00
pancake
c6bc6f099d Rename l to T, add cfg.user and 'TT' chat prompt
* Add cfg.user variable
* Implement TT chat prompt
* Invoked from 'VT'
* Rename 'l' to 'T' command (log -> textlog)
* Add r_sys_whoami () -> set default username
* Add $$ trap instruction in ESIL
* Implement POP and STACK esil commands
2014-08-28 03:11:13 +02:00
pancake
cd893a18e4 Show linenum in 'prl' 2014-08-27 03:13:08 +02:00
jvoisin
51187dca08 Fix previous commit 2014-08-26 23:57:41 +02:00
Anton Kochkov
30628f33c1 Improve colorization/displaying performance 2014-08-27 01:52:00 +04:00
Skia
384dcb4f45 Add support for nested structs in pf 2014-08-26 16:45:25 +02:00
pancake
9c536de095 Initial implementation of 'prl' 2014-08-26 03:53:01 +02:00
jvoisin
44ac7ec2a4 Implement backward disasm for most commands and remove pdn 2014-08-24 03:21:06 +02:00
pancake
f27cbe34c2 Use memmove instead of memcpy to avoid overlap issues in RBuffer 2014-08-22 18:01:16 +02:00
jvoisin
524ac829fc Remove unused r_alloca_* 2014-08-18 02:36:08 +02:00
pancake
b717518f8f Fix some warnings 2014-08-15 02:04:20 +02:00
pancake
c37df6d142 Fix include path for zlib compilation 2014-08-10 18:31:18 +02:00
pancake
504f006d5d Fixes more gunzip support in r_util 2014-08-10 18:24:00 +02:00
pancake
3d66ed5378 Add r_file_gzslurp() to read GZIPped files easily 2014-08-10 18:13:12 +02:00
pancake
332f21971a Initial fix to support loading TinyELFs (wip) 2014-08-09 23:53:13 +02:00
pancake
9a55e866b0 Fix rabin2 -Z . Implement it for DEX too. 2014-08-07 01:00:04 +02:00
pancake
c1822449a2 Handle len<1 in r_str_ansi_filter 2014-08-07 00:29:16 +02:00
jvoisin
57ea0f76fb Fix a typo 2014-08-02 14:47:58 +02:00
jvoisin
ad51f30c23 Final refactoring for pf 2014-08-02 02:19:43 +02:00
jvoisin
b71e52c7b1 Refactor pf implementation 2014-08-01 19:33:52 +02:00
jvoisin
a8ec8805d8 More LISP-correctness 2014-08-01 17:57:50 +02:00
pancake
bebaba0a0b Fix CID 1229476 with Lisp 2014-08-01 11:46:08 +02:00
pancake
be94a4dee2 Fix all pf tests 2014-08-01 00:15:17 +02:00
jvoisin
975daf00f5 Coverifix 2014-07-30 22:26:13 +02:00
Skia
3804df5456 Improve 'pf' 2014-07-30 22:19:02 +02:00
pancake
84342ea223 Little split of the RLib logic 2014-07-30 11:14:30 +02:00
pancake
50e8e0e507 Add 'lp' command to 'load plugins' + some work on 'bin.laddr' 2014-07-30 11:14:26 +02:00
jvoisin
594debd9fc Fix a memleak 2014-07-28 18:12:18 +02:00
Skia
ebad863e02 Fix name align in 'pf' 2014-07-28 04:08:14 +04:00
Skia
6350fe766e Fix pointer display in 'pf' 2014-07-28 04:08:14 +04:00
jvoisin
6e662abd91 Fix some minor gcc warnings 2014-07-22 00:24:37 +02:00
pancake
6098a4ac92 Fix #1085 - Based on a patch from @codingfree 2014-07-21 20:08:54 +02:00
pancake
7e06e13b3b Fix #1133 - gdbr warnings, and some other 2014-07-21 18:19:31 +02:00
Skia
713606a90d Implement X in 'pf', and update the help 2014-07-17 10:31:02 +02:00
Skia
bbcddaf64a Implement [nb] for widechar in 'pf' 2014-07-17 10:31:02 +02:00
Skia
44430523c9 Remove trailing spaces in some 'pf' 2014-07-17 10:31:02 +02:00
Skia
b8f572c9ae Implement [nb] for pf 2014-07-17 10:31:02 +02:00
Skia
75b331d114 Add pf.obj.str=bar and fix some more 'pf' issues 2014-07-17 04:18:09 +02:00
pancake
f233933780 Fix r_str_crop 2014-07-09 15:16:20 +02:00
pancake
0f24b905f6 Initial implementation of VVV for ascii-art callgraphs 2014-07-09 05:05:22 +02:00
pancake
8b74f1ffcf Merge Rarun2 into RSocket and use it from dbg.profile in Core 2014-07-09 02:24:31 +02:00
LemonBoy
841a1ed5b6 Better string escaping. Fixes graph view 2014-07-02 18:26:03 +02:00
pancake
036873a9b7 Fix RBin flag strings issue and name filtering 2014-07-01 22:43:28 +02:00
LemonBoy
9208946109 Add support for UTF-8 and better WChar strings in RBin
- Better string recognition.
- Better wchar string detection
- UTF-8 helpers. Better string detection.
- Break on invalid sequences
- Fix the vaddr translation. Misc fixes
2014-06-30 16:39:24 +02:00
pancake
e321c0e62c Add RReg bufdiffing apis to retrieve list of modified regs 2014-06-26 12:18:45 +02:00
Anton Kochkov
a606139ac0 More fixes for cygwin builds 2014-06-25 20:06:14 +04:00
Anton Kochkov
bf088d43bd Fix libr_util building for Cygwin 32bit (gcc 4.7.3) 2014-06-25 18:17:34 +04:00
pancake
f67850fcb2 FIx w32 build 2014-06-25 04:19:23 +02:00