Commit graph

1324 commits

Author SHA1 Message Date
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
pancake
4378fea452 Fix #4060 - aecs* crash 2016-02-17 00:38:54 +01:00
Nikita Abdullin
1f98d3efd5 windows: WriteFile fix dwBytesWritten
issue #76 WriteFile must have dwBytesWritten != NULL if lpOverlapped == NULL
2016-02-16 21:25:42 +01:00
pancake
7dd32315a5 Fix r_strbuf regression 2016-02-16 00:57:17 +01:00
pancake
ce7ca97cb6 Wip fixes for r_strbuf 2016-02-16 00:28:57 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
Riccardo Schirone
b6351ec833 core/visual: better implementation of cursor movements
core/visual: refactoring of movements with ocur enabled
2016-02-11 00:14:36 -06:00
Riccardo Schirone
b4fda922cd libr/core: calculate the offset of each disasm row
util/print: fix bug in r_print_row_at_off

core/disasm: fix bug when setting the row offset of last line
2016-02-11 00:14:36 -06:00
Riccardo Schirone
444c6e616a core/visual: replace global variables with core->print fields 2016-02-11 00:14:36 -06:00
Skia
80edc616c7 Fix pfv (close #4075) 2016-02-09 07:21:34 -06:00
diouziou
118df8a0e4 Update debruijn.c 2016-02-09 13:19:43 +01:00
pancake
805e3f26e8 Fixes for lldb/debugserver on x86-64 2016-02-03 12:09:58 +01:00
Jeffrey Crowell
4c0d56408f rm debug eprintf in rregex 2016-01-25 17:48:34 -05:00
pancake
bea71d7074 Add ap command to find prelude for current offset 2016-01-24 03:05:27 +01:00
deffi420
e7fdedd501 Improve r_hex_str2bin, fix overflow and error check 2016-01-23 11:53:43 +01:00
Pavel Borzenkov
f1a9852362 Fix 'radiff2 -g' crash
No all users of r_diff_buffers_distance() pass a pointer for 'distance'
argument. Check for NULL before assigning a value to it.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2016-01-22 15:17:22 +01:00
pancake
de22aa46f2 Fix COV with boolified r_io_creat 2016-01-19 13:16:24 +01:00
pancake
fea5e916a6 Fix #3861 - radiff2 -s is no longer killing 2016-01-11 03:18:43 +01:00
pancake
a362dcf6d9 Update sdb and fix more null derefs caused by mem exhaustion 2016-01-11 00:24:18 +01:00
Riccardo Schirone
a20562d6e8 util/print: fix glitch when cursor is on . at the end of hexpairs
* fix visual instruction alignment when using asm.bytespace
2016-01-08 23:33:57 +01:00
Florent Jacquet
abf53ba969 Fix issue #3918: pointer size in pf 2016-01-07 16:39:56 +01:00
pancake
e007cf8c71 Fix last coverities 2016-01-07 14:08:25 +01:00
DZ_ruyk
010e997c3e Fix for issue #3766 2016-01-07 12:38:00 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
6f346b6d6d Fix #3901 - Cannot debug directories and follow symlinks 2016-01-03 01:28:02 +01:00
pancake
151fab32a3 s/LIBC_HAVE_SPAWN/..FORK/g 2015-12-29 05:43:00 +01:00
pancake
b728b48123 Native tvOS/WatchOS support, non-fat libr.a and mach0 identification for them 2015-12-28 20:40:18 +01:00
zlowram
db8fbcc68b Added config variable to set absolute or relative lines 2015-12-28 16:44:26 +01:00
zlowram
91611e8cbb Implemented slc subcommand and slc? help. prl now uses lines cache if
available.
2015-12-24 13:18:09 +01:00
jvoisin
3727f0794d Change the anti pattern if (A) free (A); for free (A); 2015-12-20 19:28:39 +01:00
pancake
b5e093fc45 Indent io/io.c and fix an issue in the .sh 2015-12-08 22:35:39 +01:00
pancake
0880d7d4f5 Some refactor/cleanup for agf and io cache (wip) 2015-12-08 14:59:30 +01:00
pancake
991c39a601 More whitelisted auto-indented files 2015-12-08 13:24:21 +01:00
François Revol
797a2efc81 C89
(duplicate ; is treated as an empty statement)
2015-12-07 21:48:44 +01:00
lzmths
fb6370c421 Cleaning conditional directives that break statements. 2015-12-03 12:35:10 +01:00
pancake
ad6baf0824 Add rpath and scnperm in rabin2 -O 2015-11-27 20:37:27 +01:00
Riccardo Schirone
0407aab9c5 core/core: add afvn autocompletion
cons/dietline: add support for autocompletion in the middle of the
input, without destroying the other part of the string
2015-11-27 12:57:39 +01:00
pancake
dd8b7b1e04 Handle PIC field in ART file format 2015-11-26 13:18:11 +01:00
pancake
bfb49516e1 Some minor code cleanup for ART 2015-11-26 12:56:07 +01:00
Álvaro Felipe Melchor
d8b269f11f Fix last covs 2015-11-24 21:53:25 +01:00
Riccardo Schirone
c7a444cb39 core/cmd_meta: fix regression with format memory metadata 2015-11-24 12:45:43 +01:00
pancake
cffa44b2f7 Add ara command and fix RReg.arena.push/pop implementation 2015-11-24 00:58:03 +01:00
pancake
653e09a0aa Fix #3746 - Handle immbase anal hint in all number bases 2015-11-23 23:04:49 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
50f8ecaba4 Fix 2015-11-22 02:07:28 +01:00
pancake
88038a85ad Fix some RBinSymbol->name issues and drop null defs (-211LOC) 2015-11-22 01:09:02 +01:00
pancake
ba74db8e3a Initial implementation of CC, 2015-11-18 17:03:46 +01:00
pancake
30b1fcc208 Initial implementation of the V, comma-ents stuff 2015-11-18 13:03:35 +01:00
Álvaro Felipe Melchor
a12cb54dfb Fix 361fef crash by revskills 2015-11-17 22:44:48 +01:00
pancake
40ab1e2be6 Fix #3701 - Implement r_num_tail for dcu 2015-11-17 22:38:01 +01:00
pancake
8ff8b5df7b Fix cmd_pf tests 2015-11-17 02:04:38 +01:00
pancake
b5356bdf07 Fix regression introduced in oobread print_hexpair 2015-11-17 01:45:14 +01:00
pancake
84ceb633e1 Fix "!ps|grep ls" in iOS (r_sandbox_system) 2015-11-17 01:00:22 +01:00
pancake
9c5a309791 Fix oobread in print_hexpair and fill buf_hex in unaligned disasm 2015-11-16 22:37:02 +01:00
pancake
04cd1250c2 Add alignment for AVR code 2015-11-15 00:29:33 +01:00
Dima Turchenkov
97edd9a452 correct usage of inflate() in *.sig loader 2015-11-13 20:44:32 +01:00
pancake
a916a735e9 Fix #3682 - Handle 'x' char values by RNum 2015-11-12 00:20:37 +01:00
Anton Kochkov
60e1151ed9 Fix Cygwin mkdir 2015-11-10 18:41:32 +03:00
pancake
55800c1ed7 Fix r_str_ndup 2015-11-09 21:54:57 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
fc7f195b5b Fix pxd 8 2015-11-05 13:15:15 +01:00
pancake
b148b4a68e Fix ASAN crash in pxw test 2015-11-05 08:53:54 +01:00
pancake
8e3421d222 Remove unused variables 2015-11-05 00:47:27 +01:00
Álvaro Felipe Melchor
b1583d5b24 Fix more issues reported by clang-analyzer 2015-11-03 22:14:00 +01:00
pancake
75adfec670 Fix doublefree in btree and use-after-free in windbg 2015-11-02 12:32:31 +01:00
pancake
dd47aba9a2 Fixes for sys/static.sh 2015-11-01 10:26:38 +01:00
Kamil Rytarowski
9142144338 Fix build with external libzip
Caught on NetBSD with pkgsrc
2015-10-31 17:32:26 +01:00
pancake
0648cea3e5 Refactoring of the minidump code for portability and -1500LOC 2015-10-31 17:27:46 +01:00
pancake
691e0c8c1a Fix latest COVs 2015-10-31 12:06:40 +01:00
pancake
8b31fe3ba1 Fix crash in previous commit 2015-10-29 23:41:29 +01:00
pancake
198174957c Fix rax2 -F C parser 2015-10-28 10:11:32 +01:00
pancake
b05c48f4c0 Fix pfd crash and support enums and more formats 2015-10-27 04:52:24 +01:00
pancake
02e719fafe Aim to fix eeaf87ece627fe94f92f836ac3467ffd @revskills dyldcache crash 2015-10-26 03:45:54 +01:00
pancake
b312439484 Fix #3476 - wf support offset and size parameters 2015-10-26 03:29:57 +01:00
gk
9fcd6ed3a4 Do not try and allocate a stack if we have no edges 2015-10-26 00:50:56 +01:00
pancake
f4e6c71176 Support more pfd formatting 2015-10-25 03:28:29 +01:00
pancake
74ec59d624 Fix workaround for /R/ 2015-10-24 02:41:43 +02:00
pancake
f3ddfbb9ec Fixes for RRegex, Use r_regex_match(), comp+exec seems buggy 2015-10-24 02:06:45 +02:00
condret
6b9de1a741 implement r_str_replace_in (see #3544) 2015-10-23 19:32:54 +00:00
Álvaro Felipe Melchor
0028756c81 added name_filter to bin.prefix 2015-10-23 14:57:36 +02:00
pancake
888c05d31f Fix some recent covs 2015-10-23 12:07:07 +02:00
pancake
016fff515a Fix and optimize f-* issue 2015-10-23 00:25:13 +02:00
pancake
dcbddab6e3 Initial support for pfd and better pf autocompletion 2015-10-22 17:19:33 +02:00
pancake
3de77ad6e6 Initial support of dbg.libs/unlibs for Linux/OSX 2015-10-22 04:48:56 +02:00
condret
7d7024b2c6 initial commit for gameboy-assembler 2015-10-21 18:22:14 +00:00
condret
ddba3a446b add new colors-configs for new optype 2015-10-21 11:04:55 +00:00
pancake
45c7c923af Better dtc, demangling support. Handle RABIN2_LANG, and more c++ autodetect
* r_name_filter(len:-1) strlens the string
* Show symbol names in `dtc` (calltracer)
2015-10-19 13:21:12 +02:00
pancake
1b5cd887ce Disobey rabin2 -B if bin is not pie, enhace dmm* and mach0 2015-10-19 02:41:21 +02:00
pancake
6ed80ae39b Update sdb and rename rmkdir->mkdirp 2015-10-19 00:25:39 +02:00
pancake
b111057798 Fix #3505 - analyze cmovs a bit 2015-10-18 22:14:06 +02:00
condret
7c5deb4a4d roundkey calculation for des 2015-10-18 02:02:58 +00:00
seu
b3de57697c broken DES impl. 2015-10-18 01:44:41 +00:00
jvoisin
420a5c41e0 Fix some minor compilation warnings 2015-10-15 12:36:34 +02:00
Álvaro Felipe Melchor
d9fb954dec Added string in drr and pxr 2015-10-06 18:23:27 +02:00
Riccardo Schirone
d977002628 util/graph: remove edge only when it exists 2015-10-05 09:23:55 +02:00
Riccardo Schirone
9fc6dc6d7d core/cmd_anal: add commands to remove nodes/edges from core->graph 2015-10-03 12:42:40 +02:00
pancake
24e2bed757 Fix #2228 DESU DESU DESU DESU DESU DESU 2015-10-01 21:04:38 +02:00
Álvaro Felipe Melchor
3423bedc1d Fix covs 2015-10-01 18:36:46 +02:00
Álvaro Felipe Melchor
ac965a56c0 Fix #3359 2015-10-01 11:01:55 +02:00
pancake
5ecd98305e Add support for MBN/SBL roms, fix 11acb8392, binsect->has_strings 2015-09-29 00:42:31 +02:00
pancake
ec5bab3692 Fix another bug in strbuf 2015-09-28 03:20:53 +02:00