Commit graph

1324 commits

Author SHA1 Message Date
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
tosh
eb6b86dd4b Some fix in the ELF parser
New functions used to prevent integer overflow when add, sub or mul
Fix an out of bound in r_buf_fcpy_at
2014-06-23 15:34:51 +02:00
Jonathan Neuschäfer
c57c2c5c96 fix an out of bounds read in r_hex_str2bin 2014-06-21 01:39:20 +02:00
pancake
2408ce9a42 Fix segfault in esil for arm-thumb and colorize 'ar?' 2014-06-19 04:52:28 +02:00
pancake
5c209802a7 More work on arm-thumb-capstone + esil 2014-06-19 04:03:11 +02:00
pancake
7b9d13bbc3 Fix 'afc' (code complexity), fix nulltype xrefs and some helps 2014-06-19 01:11:53 +02:00
pancake
dfb9d11474 Initial implementation of the new ESIL. (RPNESIL)
Use the 's' key with static analysis to step
Anal backends must be updated to use the new syntax
Uses 'ar' to get/set regs, and anal->io for read/write mem
Some few commands implemented, no extend api yet
2014-06-16 05:58:00 +02:00
pancake
db05de4513 Add orange-gray theme (ogray). Move doc/r2theme to shlr/www/enyo/colors 2014-06-14 03:53:35 +02:00
pancake
8330ea59fc Fix stale pointer issue in RBinELF. Add r_mem_dup 2014-06-14 00:04:40 +02:00
pancake
b788deac00 Fix latest coverity issues
CID 1221463
CID 1221462
CID 1221461
2014-06-07 11:23:14 +02:00
pancake
06ec145106 Fix r_file_truncate 2014-06-06 01:10:43 +02:00
pancake
e06b6695e8 Fix r_file_slurp() for /proc files 2014-06-04 03:51:18 +02:00
condret
70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
pancake
650c824171 Implement list color themes with 'ecf' command 2014-05-28 01:07:02 +02:00
pancake
2890b25e42 Fix w32 build 2014-05-19 10:54:29 +02:00
Anton Kochkov
efa1e2f68f Fix CID 1214579 2014-05-19 05:40:45 +04:00
Anton Kochkov
557c0b2f03 Fix CID 1214585, 1214586 2014-05-19 05:38:19 +04:00
pancake
0d68756791 Add r_str_crop() will be used by canvas to shifted render text 2014-05-18 03:41:39 +02:00
pancake
a708b77a2d Add Cydia packaging 2014-05-18 03:15:38 +02:00
pancake
ac3840498d Do not set OBJECTs as data to avoid random issues, fix some dwarf issues 2014-05-18 01:26:13 +02:00
pancake
45c41d4582 Handle 'mov' color in RCons.pal 2014-05-16 04:07:03 +02:00
pancake
583be01f32 Handle ^C in /p 2014-05-14 23:24:46 +02:00
Adam Pridgen
5bb7ddef66 Added listing for binfiles, selection by binobject ids, selection by binfile ids, and deletion by bin object ids 2014-05-13 21:54:18 -05:00
deeso
1fbc7f2168 Added load_bytes, Pushed curplugin down to RBinObj, Reworking the RBinFIle loading to accomodate RBinObj reworked how all bins are loaded. Needed to hack IO to make
this work with rbinfiles and rbinobjects.

Conflicts:
	libr/bin/bin.c
	libr/bin/p/bin_te.c
2014-05-13 21:54:18 -05:00
pancake
728dd81352 Add objc.pl to import ObjC class info into r2, enhace arm.cs and more
- Fix @@ flagname*
- Fix precision bug in r_num_units()
- Better ARM Thumb code analysis (still pretty basic)
2014-05-14 03:53:22 +02:00
pancake
216c183b6e Remove tons of useless 'if (x) free (x)' 2014-05-09 17:40:28 +02:00
deeso
4ad0f2a400 Tweaking bin plugins so that they can check bytes along with a binfile and fixed extraneous * in buf.c and r_util.h 2014-05-08 14:09:10 -05:00
deeso
621e425e26 Adding buffer accessors 2014-05-08 12:27:50 -05:00
pancake
887f15b03d Add r_bp_del_all (db-*) and fix some more bugs 2014-05-08 17:38:29 +02:00
pancake
773b033620 Fix negative/huge mallocs in PE parser and fix invalid fd close 2014-05-08 01:32:06 +02:00
pancake
d138f61816 Add r_num_as_string() in '?' and in disasm as comments 2014-05-07 02:51:04 +02:00
Skia
b1b90852be Implement a more efficient r_list_add_sorted 2014-05-06 11:25:30 +02:00
Skia
52b7f19029 Remove r_list_get function 2014-05-06 11:25:22 +02:00
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
Adam Pridgen
e9cabecc45 Fix CIDs: 1211131, 1211134, 1211136, 1211133, 1211143 2014-05-04 22:09:20 -05:00
pancake
f9256d83de Add initial ascii-art graph layout and implement RCons.resize() api 2014-05-05 03:15:28 +02:00
jvoisin
995134d2a8 Fix a picky gcc warning 2014-05-03 02:21:14 +02:00
fr33tux
a68171d3e9 Remove r_list_unlink and r_list_unref functions 2014-05-03 01:27:10 +02:00
fr33tux
3d801f90ff Remove r_list_destroy, replaced it by r_list_purge 2014-05-03 01:27:10 +02:00
pancake
44f43eb42b Use MAKE_JOBS in more places 2014-05-03 01:23:12 +02:00
deeso
14354feb61 fixed MMap Read-Write issue in io plugins and RBuf 2014-05-02 16:43:47 -05:00
deeso
3adcb54f17 Overhauled how files are loaded. Now *all* files use an IO plugin the default one is mmap'ed 2014-05-01 20:13:57 -05:00
pancake
7028b225bd Added 'VV' command to run the visual graph mode 2014-04-29 03:54:20 +02:00
pancake
d7ff0e46be Implement 'ej' to dump config in json and update uncrustify 2014-04-28 11:54:01 +02:00
pancake
b49195f2df Fix lot of warnings 2014-04-28 11:53:22 +02:00
Judge_Dredd
3158cc9d1c fix #822 & related mess 2014-04-28 11:36:55 +02:00
Anton Kochkov
0f14e3352c Fix DWARF parsing 2014-04-27 03:57:53 +04:00
Anton Kochkov
afedcc0074 Fix CID 1135011, 1195065, 1134730, 1134754, 1134907, 1134758 2014-04-27 01:06:13 +02:00
deeso
3e412605e3 Fixed: 1205190, 1205200, 1205191, 1205199, 1205198, 1205197, 1205196, 1205195 2014-04-25 14:21:20 -05:00
Anton Kochkov
008af29003 Fix CID #972173 2014-04-25 05:40:30 +04:00
Anton Kochkov
633043ae8f Fix CID #1134677 2014-04-25 05:36:16 +04:00
Anton Kochkov
f1e2ffa2ca Fix CID #1134712 2014-04-25 05:24:21 +04:00
Anton Kochkov
dff80a870b Fix CID #1134716 2014-04-25 05:18:29 +04:00
Anton Kochkov
3f4d7bdf34 Fix CID #1134755 2014-04-25 05:18:29 +04:00
Anton Kochkov
bca86df493 Fix CID #1134856 2014-04-25 05:04:44 +04:00
Anton Kochkov
5e8305e7a6 Fix CID #1134893 2014-04-25 05:01:42 +04:00
Anton Kochkov
e0c0e18ee6 Fix CID #1134958 2014-04-25 04:58:48 +04:00
Anton Kochkov
e7d75ab994 Fix CID #1135011 2014-04-25 04:56:37 +04:00
Anton Kochkov
52cc6ccce4 Fix CID #1135067 2014-04-25 04:52:47 +04:00
Anton Kochkov
06057c3945 Fix CID #1135068 2014-04-25 04:48:31 +04:00
Anton Kochkov
9864220150 Fix CID #1135101 2014-04-25 04:42:05 +04:00
Anton Kochkov
41aa422a8a Fix CID #1135168 2014-04-25 04:37:18 +04:00
Anton Kochkov
0146be4273 Fix CID #1135634 2014-04-25 04:31:47 +04:00
Anton Kochkov
14f3c113d3 Fix CID #1195065 2014-04-25 04:19:34 +04:00
Fedor Sakharov
179147bf77 util: Read strings from file correctly 2014-04-21 19:22:37 +04:00
Adam Pridgen
ea94ae5c2c Fix CID: 1204243, 1204247, 1204246, 1204245, 1204244 2014-04-20 23:55:50 -05:00
deeso
a1e81a4cbd refactored some of cmd_hash 2014-04-20 17:22:51 -05:00
Anton Kochkov
b257f06a9c Fix CID #11351131 2014-04-20 03:33:59 +04:00
pancake
b7ac099d2d Add 'pxd' for base10 hexdump 2014-04-12 01:14:13 +02:00
pancake
77b2e5fcc2 Fix hex.cols=1 infinite loop 2014-04-09 05:12:26 +02:00
pancake
3cc4187fc6 Add 'pca' to print code asm line 'ps' in r1 2014-04-11 00:34:48 +02:00
pancake
bb531643ca Fix asm.arch=? asm.cpu=? and add hex.pairs option 2014-04-10 22:18:26 +02:00
pancake
10f2439c5d Update sdb and fix #777 - pxq and pxw honors cfg.big_endian 2014-04-10 19:18:21 +02:00
pancake
5091fa0887 Fix segfaults and minor changes in m68k disasm + anal, webversion is not 2014-04-06 03:29:29 +02:00
Adam Pridgen
b182b23b40 fixing the following coverity issues, which entails the issue with print and most of the java issues:
1196398, 1196403, 1196402, 1196401, 1196400, 1196413, 1196415, 1196414, 1196411
2014-04-05 00:39:17 -05:00
Adam Pridgen
3048a34783 Trying to fix mem-leaks, and allow updating of bin object infos 2014-04-03 14:04:07 -05:00
Adam Pridgen
6bc694f873 Added colorization to pdn and added a dead code warning if all the bytes in a method are not consumed during analysis. 2014-04-01 16:22:56 -05:00
pancake
796bb19cfd Implement ?x- command to decode hexpair strings 2014-03-31 17:16:27 +02:00
Jann Horn
d0fb7bb687 Fix r_sandbox_check_path – there were ways to perform directory traversal.
- The function failed to catch the case that the path ends with "..",
   allowing the contents of the directory one path component above the
   cwd to be listed. This is probably not very interesting.
 - The function did not check for ".." components in the path if it
   starts with R2_WWWROOT, leading to full directory traversal (example:
   /usr/local/share/radare2/0.9.8.git/www/../../../../../../etc/passwd
 - Use strncmp instead of memcmp
 - Handle relative webroot paths properly
 - Check for empty R2_WWWROOT
2014-03-27 00:32:43 +01:00
pancake
13fb09ee5f Update sdb from git and sync base64 fixes 2014-03-26 23:17:40 +01:00
pancake
7a47a7c29c Some fixes for RLang plugins 2014-03-26 01:34:32 +01:00
pancake
aa30ed647f Fix #719 - Fixes in yank and uncrustify indentation rules 2014-03-22 00:37:25 +01:00
Adam Pridgen
b144099451 RCore yank_buf is now a RBuffer with a defined API. Tweaked RBuffer so it reallocs buffers correctly. Modified io_zip to write through on new files. 2014-03-20 13:09:37 -05:00
jvoisin
ea2363d926 Fix some coverity issues 2014-03-16 00:16:43 +01:00
pancake
fb98bc1335 More sdbization for comments and hints (-250LOC) 2014-03-12 02:44:49 +01:00
pancake
6bcdeb9430 Fix #688 - Fix overflow in r_str_escape 2014-03-10 01:06:50 +01:00
Fedor Sakharov
bb68fa072c util: Fix umask when making temp file 2014-03-09 00:01:04 +04:00
Fedor Sakharov
61193c6527 Fix coverity issues in r_util 2014-03-08 11:56:15 +01:00
pancake
f7bdfb2bbc Fix #575 - Thanks @montekki - plus other enhacements
- Use ↑ for utf8 backlines
- Support multiple RAnalMetas on every line in disasm.c
- Use sdb in disasm to retrieve RAnalMetas instead of api
2014-03-08 02:36:33 +01:00
pancake
784a1d2a72 Import radare2-capstone asm/anal plugins 2014-03-07 04:15:45 +01:00
pancake
7d1a63a545 Fix #585 - Segfault in echo q | r2 -d lib 2014-03-02 04:36:27 +01:00
pancake
fa7a304da3 Fix segfault in r_hex_str2bin 2014-03-01 23:17:52 +01:00
pancake
8d68b37b02 Add MOD operator '%' in RNumCalc 2014-02-26 19:42:56 +01:00
pancake
03b61eeb25 Implement AND, OR, XOR, NEG operations in r_num_calc() 2014-02-26 18:33:42 +01:00
pancake
ec58f84572 Add asm.bytespace=true config variable 2014-02-25 01:35:23 +01:00
pancake
2590e997b1 Fix r_sys_now() and implement scr.fps 2014-02-24 16:10:12 +01:00
pancake
fb3af59852 Oops. Fix typo in str.c 2014-02-23 16:37:24 +01:00
pancake
070bc97286 Fix #582 - Escape binary strings in output error message 2014-02-23 01:56:26 +01:00
pancake
9b9b04576f Purge all r_lib references 2014-02-20 22:16:23 +01:00
pancake
4bb63d4c2e Use dynamically allocated *next (+15% analysis speedup + better analysis) 2014-02-20 00:43:06 +01:00
pancake
e82b9473ec Fix #630 - Add /v1 and handle cfg.bigendian 2014-02-18 15:34:20 +01:00
pancake
c406144aa7 Fix build and implement basic, print_hexdump works with null instance 2014-02-16 03:11:41 +01:00
Zach Riggle
36518d2ae6 Fix clang build (unicode characters outside of literals) 2014-02-15 20:47:46 -05:00
condret
0a8fd8b931 Merge condret's GameBoy pull request
- Update analysis
- Add p2 (2bpp print command)
- Insert more auto comments for gb roms
- Delete mbc
- Handle gb-halt as cjmp (correct in most situations)
- Update gameboy register profile
- Add symbols for hard-interrupt-handlers
2014-02-10 17:02:43 +01:00
pancake
90264229c9 Add Vo, fixes in $sys in RAsm, new io.self plugin, initial work on preloaded r2 2014-02-10 03:31:12 +01:00
Fedor Sakharov
18d7167f63 dwarf: Implement it. 2014-02-08 14:08:07 +04:00
pancake
8b40a53080 Update sdb from git and fix 'test.cparse' 2014-02-08 03:09:03 +01:00
pancake
2c676570a9 Merge branch 'master' 2014-02-06 00:27:08 +01:00
pancake
9a099e9e9e Add RAsmPlugins->cpus and handle it in rasm2 -L <arch> 2014-02-06 00:26:17 +01:00
Ilya V. Matveychikov
969ea9b7c2 TMS320: move c55plus under the TMS320 namespace
Sorry for the huge patch, but there is nothing special. We just move
asm/arch/c55plus into the asm/arch/tms320 and add some wrappers to use
existing code base under the new namespace.

Also, we've implement TMS320 anal module that supports now c55+ only. To
be continued...
2014-02-06 01:19:23 +04:00
pancake
e7783173c7 Fix #588 drx segfault 2014-01-12 02:16:56 +01:00
pancake
571ba82ab6 Many bugfixes related to 'drx'. Still not working on linux 2014-01-11 23:48:55 +01:00
pancake
891a1e5bb8 Implement 'drx' command in RDebug plugin backends 2014-01-28 04:08:10 +01:00
pancake
579856e7b9 Implement 'wu' and add support for nocolor in 'cu' 2014-01-26 04:33:21 +01:00
pancake
4672c2d866 Fix short jmp assemble in x86.nz, add rasm2 -O <outputfile> 2014-01-26 01:58:25 +01:00
pancake
666ab166d1 Add 'cu' and 'arC', better 'cc' 2014-01-24 02:37:14 +01:00
pancake
6656f8d0fa Some more cleanup and rmeta fixes 2014-01-23 04:00:01 +01:00
pancake
99a6dec209 Fix r_file_is_directory() 2014-01-21 02:08:51 +01:00
pancake
cacb12cafc Fix opening block devices (S_IFDIR wtf) 2014-01-20 15:04:16 +01:00
pancake
802e808072 Merge libr/lib into libr/util and add r_sys_environ API 2014-01-18 02:42:23 +01:00
pancake
1066c7a4f6 Fix uninitialized string in disasm.c and do not use of strcasestr 2014-01-10 18:45:51 +01:00
pancake
aeb681ea33 Fix #503 - expand home and fix sandbox check for 'wt' 2014-01-04 12:39:12 +01:00
pancake
6c2200c80b Fix build and some warnings 2014-01-04 02:06:36 +01:00
pancake
2475dc6d04 Optimize r_anal_reflines and r_anal_data_kind (disasm is now 7 times faster) 2014-01-04 01:59:23 +01:00
David Martínez Moreno
06ed8553c6 Properly propagate LDFLAGS in libraries.
Debian fills up LDFLAGS with hardening flgs but for some libraries this
 parameter is not additive to the value from the environment but hardcoded.
2013-12-31 23:56:59 -08:00
pancake
3b3bbbb916 Add more Jamroot files and move some plugs to r2-extras 2013-12-31 15:34:27 +01:00
pancake
dba63fbd3c Add some Jam files and merge rsign into ranal 2013-12-31 05:30:39 +01:00
pancake
da33633680 Fix #491 - Project untrusted input
- Fix various project related issues
- Do not save in directories. Projects are file + file.d/
- Do not show division by zero issue (e cfg.foo=/bin/ls)
2013-12-28 02:34:15 +01:00
pancake
3a9b6c686f Fix asm/avr license and some coverity issues 2013-12-15 00:58:05 +01:00
pancake
5574d90ba1 Fix strbuf signature 2013-12-14 01:16:09 +01:00
pancake
a03dd04c42 Fix r_sys_pid_to_path for FreeBSD (thanks vsp) 2013-12-11 12:32:15 +01:00
pancake
160495aaeb Fix #440 - Invalid use of va_list in r_str_newf for huge strings 2013-12-10 00:47:23 +01:00
pancake
4bc74d0fb4 Fix 'cg' RCore's double-free issue 2013-12-09 05:23:06 +01:00
pancake
f76441b7e7 Fix some warnings 2013-12-09 04:56:13 +01:00
pancake
b97eecc06f RStrBuf setters return boolean for success 2013-12-08 02:47:55 +01:00
pancake
af6c71417a Show plugin path in r2 -hh, add r_str_rmch() inline 2013-12-04 02:35:10 +01:00
pancake
05d7188a9a Fix dynamic format string functions
- s/r_str_dup_printf/r_str_newf/g
- Add r_strbuf_setf()
2013-12-04 00:20:52 +01:00
pancake
d10d0c6516 Fixes for the strbuf api 2013-12-03 17:27:47 +01:00
pancake
8717542596 Add RStrBuf api 2013-12-03 04:46:53 +01:00
pancake
d02df0d306 Fix some issues reported by CoverityScan service 2013-12-03 00:14:59 +01:00
Adam Pridgen
519190801b Rewrote backward disassemble with a greedy backward algorithm, added a find api to rlist, label to bb struct 2013-12-02 00:09:22 +01:00
pancake
f0a45a556a Fix ^w segfault and many bugfixes for macro scripting 2013-11-30 02:47:29 +01:00
pancake
904751ce86 Fix some startup valgrind warnings 2013-11-25 00:45:18 +01:00
pancake
ceac926eb0 Fix #379 - RCons fill empty lines is wrong on utf8 2013-11-23 03:47:22 +01:00
pancake
456b72f85e Fix #380 - shell backticks segfaults 2013-11-22 18:20:15 +01:00
Adam Pridgen
a5ad388eb5 Cleaned up how the pd command process input. Added support for setting [len] [asm.arch] [bits] for all pd commands. 2013-11-22 08:45:13 -06:00
Fedor Sakharov
13547a0bbf Fix #370 - Some memory leaks
Fix memory leak in r_config_new.
  cfg->nodes->free should be a custom function that frees RConfigNode
  structure correctly, but not the ordinary free.
Fix memory leak in r_anal_new.
  In r_anal_free need to call r_meta_free to free the
  whole RMeta structure, not only it's data list.
  The r_meta_free doesn't seem to have any leak itself.
Fix leaking anal->hints.
Fix memory leaks in r_cmd_free
Fix memory leak in r_cmd_plugin_init
Fix memleak in r_lib_new
Fix memory leak in r_io_plugin_init
Fix memory leak in r_debug_trace_new
Fix memory leaks in r_io_new
Fix memory leak in r_graph_new
Fix memory leak in r_sys_getdir.
  Note: calling getcwd with dir=NULL is a Linux-specific extension
  of POSIX, not sure if works on other non-windows platforms.
Fixes a typo
2013-11-19 01:51:40 +01:00
pancake
30ebc8b8b3 More work to make zip plugin work 2013-11-14 23:22:56 +01:00
Adam Pridgen
0bc95a2fc4 Added the necessary libzip and libz files for opening zip files and reading and writing to them from memory via uri, added zip, apk, jar 2013-11-14 04:54:50 +01:00
pancake
1d8bd40ace Use sscanf again. strtoull is broken (fix testsuite) 2013-11-13 02:30:00 +01:00
pancake
42a8bb440e Fix #345 - fix some segfaults in yank and num.c 2013-09-05 05:10:57 +02:00
pancake
1b2ba18c0e Fix #270 - ragg2 crashs on false-conditions loops 2013-11-10 04:33:12 +01:00
pancake
9bb51ca329 Implement 'pcJ' to print block in Javascript 2013-11-06 02:37:25 +01:00
pancake
3918ccd63a p6 is now an alias for p6e. And fix 'pc' help 2013-11-06 02:24:02 +01:00
pancake
1cec548b68 Fix #288 - r_str_replace() - realloc invalid next size 2013-11-06 00:30:35 +01:00
pancake
1769a767cd Fix cpp warnings 2013-11-04 04:50:37 +01:00
pancake
d0f40d6e48 Aim to fix #208 and #288 - r_str_replace issue 2013-11-04 04:38:57 +01:00
pancake
2a909d6302 Fix #300 - (64bit dr= indentation) and fix r_sys_pid_to_path on linux 2013-09-05 01:44:05 +02:00
pancake
2f76003fd0 Another fix for asm.segoff 2013-11-04 04:07:58 +01:00
pancake
497cb0e2e1 Fix #57 - 'is' does not work for attached process 2013-11-04 03:30:46 +01:00
pancake
ede55b55c4 Fix r_mem_mem and handle 'K' in visual cursor mode to see manpages 2013-11-03 13:47:34 +01:00
pancake
724630896b Fix #301 - Invalid size: 5 while disassembling x86 TE binary 2013-11-02 12:14:39 +01:00
pancake
567bccae92 Fix #302 - Visual mode seeking in w32 sleeps longer 2013-11-02 12:10:25 +01:00
pancake
d900345a66 Fix #266 - [ragg2] exit on invalid input (again) 2013-10-28 02:05:18 +01:00
pancake
8cc4809c3a Refix for #288 and do not stop on invalid reflines 2013-10-27 02:20:36 +01:00
pancake
f2ce3f277b Fix off-by-one in r_str_replace 2013-10-26 23:53:50 +02:00
pancake
a72e7d34a1 Fix another overlapped strcpy 2013-10-25 00:31:09 +02:00
pancake
a7dff22c7e Fix strcpy on overlapped region 2013-10-25 00:29:00 +02:00
pancake
d814a5b01b Fix #264 - Add a command to display changed registers 2013-10-20 02:09:03 +02:00
pancake
b1140b99aa Fix 'pu'. Add 'pxw' and fix some 'pc' subcommands 2013-10-15 00:26:17 +02:00
pancake
d8e41ac26b Fix code analysis issue (code vs data) 2013-10-12 02:19:01 +02:00
pancake
342e5db5ec Fixes for r_num_to_bits() 2013-10-11 04:25:46 +02:00
pancake
d100e603c9 Fix #157 - sandbox issue in webui
- add 'f' and ':' print formats
- fix nocolor disasm artifact
- add VW command to launch webui
- rename sN to sp (seek to previous hit)
2013-10-09 00:29:49 +02:00
pancake
653881eb3a Merge and fix jvoisin #235 #236 2013-10-04 13:57:49 +02:00
pancake
ab3c27bda3 Fix iOS build 2013-10-01 17:14:50 +02:00
jvoisin
d8603f2502 Remove spagetti code 2013-10-01 01:08:18 +01:00
jvoisin
da002cc95d Fix a memory leak 2013-09-27 18:57:07 +02:00
pancake
0f2fd99986 Fix some warnings and add a specific plugins.cfg for emscripten 2013-09-15 23:57:22 +02:00
pancake
5372d0acb2 Add 'woR' and 'dd-' commands. Update enyo and add missing PNGs. 2013-09-15 02:24:23 +02:00
pancake
ae97789986 Fix lot of warnings 2013-09-14 14:04:08 +02:00
pancake
b59b8aa7e4 Add support for @naked in ragg2 2013-09-14 00:51:42 +02:00
pancake
341da1d154 Various fixes in RRegArena and add 'dcs' command 2013-08-29 16:59:24 +02:00
pancake
a1aafc6adc Do not allow to create flags starting with a number 2013-09-07 02:39:26 +02:00
pancake
7855f4952f Initial work supporting emscripten compilation 2013-09-07 00:39:08 +02:00
pancake
65fed9b9a0 Handle '-' in 'w' commands, support comments in wF, Fixes in wp 2013-09-04 02:31:14 +02:00
pancake
e25567cb09 Implement .-. Fixes for cfg.editor and handle RCons.editor() 2013-09-04 00:35:48 +02:00
pancake
302328a76c Fix #203 - Call to a section + some more work on utf8 2013-09-03 22:45:43 +02:00
pancake
53428f374c Merge ../radare2-xvilka
Conflicts:
	libr/include/r_cons.h
2013-08-30 00:39:38 +02:00
pancake
35d7b940cb Fix utf8 issue in r_str_prefix and optimize reflines 2013-08-30 00:38:31 +02:00
pancake
a46eb958e7 Initial implementation of the wip multiline text editor 2013-08-28 03:06:10 +02:00
Anton Kochkov
2d3297e26d UTF8 arrows initial support 2013-08-28 00:26:30 +04:00
pancake
602bb70a30 Simplify shlr build and some w32 fixes 2013-08-27 01:18:42 +02:00
pancake
1dc50d359b Fix shlr/sdb build for sys/android 2013-08-27 00:52:04 +02:00
pancake
9850c0a3c3 Fix some warns and enhace GIT_TAP in makefiles 2013-08-26 01:07:21 +02:00
Judge Dredd
3b64d2fa10 fixed a bug in r_str_replace 2013-08-24 23:02:07 +02:00
pancake
e0f6f41e68 Fix w32 build 2013-08-22 00:15:05 +02:00
pancake
e6ce20dabe Fix w32 build 2013-08-19 00:41:44 +02:00
pancake
b6ae1b64f2 Add 'dpe' command to discover the path of executable from given pid 2013-08-19 00:36:17 +02:00
pancake
05df20f411 Update sdb, more work on types 't' 2013-08-13 03:23:39 +02:00
pancake
59820d6b14 Implement pointer arithmetics in 'pf', 't?' and 'td'. 2013-08-11 14:23:51 +02:00
pancake
19314bc27f Better comments in disasm, fix io->size = 0 regression 2013-07-18 23:00:38 +02:00