pancake
41d6e9edde
Add bash autocompletion support
2016-10-04 14:34:06 +02:00
Sebastian Reichel
b98880ff26
Debian patches ( #5866 )
...
* Fix esil manpage
Each manual page should start with a "NAME" section, which lists the
name and a brief description of the page separated by "\-". The "NAME"
section is parsed by lexgrog and used to generate a database that's
queried by commands like apropos and whatis. Without this change
lexgrog fails to parse the NAME section of this manual page.
This was found by Debian's lintian tool (manpage-has-bad-whatis-entry).
* Fix empty input line in manpages
Found-By: lintian as manpage-has-errors-from-man
* Fix rahash2 manpage
.El (end list) is only valid after .Bl (begin list),
but no list was started in this section.
Found-By: lintian
* Avoid build break if no static bin plugins are defined
If one disables all static bin plugins, build currently fails,
since R_BIN_STATIC_PLUGINS/R_BIN_XTR_STATIC_PLUGINS are not
defined. This fixes the build for these kind of setups.
(In Debian does not built the mach code, since the
Apple Public Source License is not compatible with
the Debian Free Software Guidelines. Without the
mach code there is not a single binxtr plugin)
* Fix implicit declaration of function 'linux_generate_corefile' on i386
Noticed by Debian build farm.
* Add support for SOURCE_DATE_EPOCH
SOURCE_DATE_EPOCH can be used to make builds
reproducible [0].
Note: radare suffers from a second problem making the
build unreproducible: It captures the full build path.
This is *not* covered by this change.
[0] https://reproducible-builds.org/specs/source-date-epoch/
2016-09-28 19:17:43 +02:00
pancake
3986ea1fbb
Aim to fix the sym loading regression in debugger
2016-09-26 17:33:08 +02:00
Álvaro Felipe Melchor
3a5444f3ca
Fix warnings
2016-09-26 13:24:00 +02:00
pancake
59bf09a66a
Refix oo to make travis happy
2016-09-26 12:53:05 +02:00
pancake
5c70e3fae1
Fix regression in rbin
2016-09-26 01:51:17 +02:00
pancake
1e89dddd87
Fixes in oa, asm.bits, avr and io debug issues
2016-09-26 00:46:20 +02:00
Marc
0c8556bb22
Fix some DEX disasm issues ( #5829 )
2016-09-23 00:33:25 +02:00
pancake
e2b14a50f3
Fix latest COVs
2016-09-21 11:30:29 +02:00
pancake
613c27f98f
Implement cfstring support for ARM/Thumb binaries
2016-09-20 11:35:32 +02:00
pancake
e228e430e0
Add support for cfstrings and fix arm64 ADR analop for more refs
2016-09-20 00:43:06 +02:00
Álvaro Felipe Melchor
71d45f9a42
added coff in is_data_section
2016-09-19 17:34:49 +02:00
Sven Steinbauer
2996538700
Fix #5633 - Change x == NULL
to correct syntax
2016-09-19 14:44:47 +02:00
pancake
a59e0ce083
Fix crash in gdb:// and some oobreads
2016-09-13 02:38:08 +02:00
pancake
945d6690f9
Fix latest coverities
2016-09-01 12:39:32 +02:00
pancake
12a6469bbd
Various fixes for the debug register state on XNU for ARM and x86
2016-08-31 01:57:36 +02:00
pancake
e04498ac02
Add rabin2 -X and r_bin_package for FAT and ZIP
2016-08-30 04:26:20 +02:00
Damien Zammit
3ae075cba9
rabin2: Fix check for binaries and as a result don't need to open twice ( #5614 )
2016-08-26 22:21:06 +02:00
Álvaro Felipe Melchor
0bc983027f
improve arm/thumb in elf file format and disasm
2016-08-07 17:38:34 +02:00
pancake
7b0622f85d
Fix latest covs
2016-08-01 14:46:17 +02:00
pancake
2bf4dc7ffc
Fix #5426 - r_bin_list uses RCons now
2016-07-30 19:17:17 +02:00
Álvaro Felipe Melchor
f1236563f3
Refactor RBin.Xtr to speedup dyldcache extraction
...
* Refactoring RBinXtr API.
* Cache sub-fat bins in sdb to save memory.
* Fix the error while loading sub-bins of different archs.
* more work into xtr to fix the remaining tests
2016-07-27 11:01:57 +02:00
pancake
f4e493166b
Fix #5224 - Fix UAF in RBinObject.mem
2016-06-28 23:44:18 +02:00
pancake
b25c520428
Do not realign non-code ARM symbols (strings and such)
2016-06-10 12:18:32 +02:00
Anton Kochkov
9ff4056539
Fix CID 1356017
2016-05-24 08:59:26 +03:00
Anton Kochkov
5bc6323591
Fix CID 1356008
2016-05-24 08:57:36 +03:00
andrey.torsunov
2c25a8d503
Reduce memory leak for commands: oo, doo
2016-05-23 20:17:41 +02:00
Sven Steinbauer
5cbcdf1da7
Infer fixes for bin
...
Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
Álvaro Felipe Melchor
647b4f29b5
Fix #4808
2016-05-13 21:52:28 +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
fafc626b55
Performance optimization for rabin2 (request vs all)
2016-04-23 00:47:00 +02:00
NaveenBoggarapu
4c04b98b47
few memory leaks fixed
2016-04-13 21:55:48 +02:00
Anton Kochkov
c481971fc8
Fix CID 1353776
2016-04-06 00:49:14 +03:00
pancake
c834239830
Find strings in more sections for PE binaries
2016-04-05 13:30:10 +02:00
Álvaro Felipe Melchor
fc4f2a2a38
fix minor things to be able to load dyld
2016-04-04 23:28:02 +02: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
740e43eadd
Fix some segfault and consistencies
2016-04-04 01:59:30 +02:00
pancake
54fe1ae941
Fix uaf and another memleak
2016-04-04 00:36:18 +02:00
pancake
e8263655be
Fix more memleaks
2016-04-04 00:17:57 +02:00
pancake
c9514302bf
Fix some lifecycle memory leaks
2016-04-03 23:52:36 +02:00
Álvaro Felipe Melchor
cd85e12a31
fix some memory leaks
2016-03-31 23:01:02 +02:00
pancake
977aeb8173
Show entrypoint type info in rabin2 -e and ie
2016-03-12 11:16:42 +01:00
Matthieu Tardy
bb84bbc276
Fix memory leaks in rabin2 and libr
2016-03-06 23:17:44 +01:00
pancake
384cfb1042
Fix last coverities
2016-02-16 02:08:09 +01:00
pancake
f2079db4ad
Fix fatmach0
2016-02-04 18:02:09 +01:00
pancake
f5181c4d90
Initial rework for dyldcache
2016-02-04 15:44:49 +01:00
pancake
a362dcf6d9
Update sdb and fix more null derefs caused by mem exhaustion
2016-01-11 00:24:18 +01:00
pancake
92c1631a06
More indent fixes
2015-12-09 00:41:44 +01:00
pancake
cfb03d3772
More indentation fixes
2015-12-09 00:27:31 +01:00
pancake
a4fc08b401
More auto-indentation enhancements
2015-12-08 23:55:23 +01:00
pancake
c4e0ac2885
Fix rabin2 -O sync issue and update manpage
2015-11-30 00:10:28 +01:00
pancake
c0f1184ae0
Simplify two return conditions
2015-11-27 13:09:38 +01:00
Dima Turchenkov
898a00d1d4
String search optimization
2015-11-27 13:06:13 +01:00
Dima Turchenkov
cded3acaba
Search string references in data references option
2015-11-27 13:06:13 +01:00
Álvaro Felipe Melchor
d3a5065a23
Fix a heap use after free
2015-11-19 23:05:09 +01:00
pancake
0556a14402
Fix #3697 - Only thumb align in thumb and code segments
2015-11-17 12:51:37 +01:00
pancake
164dcada3b
More RBin memory usage optimizations
2015-11-09 12:12:18 +01:00
pancake
45de9bc433
Shrink Imports and Strings RBin memory footprint
2015-11-09 04:41:31 +01:00
pancake
baf63a0cba
Reduce RBinSymbols memory (smaller footpronum)
2015-11-09 03:41:07 +01:00
pancake
e359b0b2bf
Fix crash regression in rbin, use ptrbuf instead of dupbuf, mem opt lost
2015-11-09 01:03:07 +01:00
pancake
091eaaca91
Optimize memory usage in RBin
2015-11-09 00:07:46 +01:00
Álvaro Felipe Melchor
7498ddff58
Fix crash demangle in objc reported by revskills
2015-10-29 12:57:06 +01:00
pancake
7a1b6516c1
Fix java class crash reported by @revskills (db3d80b14..)
2015-10-24 13:20:55 +02:00
Riccardo Schirone
70669bafc0
bin/bin: do not filter out non-pie binaries when using baddr
2015-10-23 10:55:13 +02:00
Álvaro Felipe Melchor
14a775f14f
Fix #3509 - bin.prefix option
2015-10-22 23:36:43 +02:00
pancake
1b88200e31
Add support for 'interpreter' in RBin, ELF and MACH0
2015-10-22 02:13:26 +02:00
jvoisin
c4a930aeff
Implement iLj
2015-10-20 14:30:52 +02:00
Riccardo Schirone
0951d51a45
core/anal: use r_bin_get_vaddr instead of raw vaddr and paddr fields
2015-10-20 00:39:19 +02:00
pancake
1b5cd887ce
Disobey rabin2 -B if bin is not pie, enhace dmm* and mach0
2015-10-19 02:41:21 +02:00
Ben Gardiner
8d4ad47210
Add bin.maxstrbuf and RABIN2_MAXSTRBUF, update manpage
2015-10-11 03:47:32 +02:00
pancake
afb96ab64e
Two minor fixes for rabin2 -zzz and webui/m
2015-10-05 02:01:12 +02:00
pancake
5ecd98305e
Add support for MBN/SBL roms, fix 11acb8392
, binsect->has_strings
2015-09-29 00:42:31 +02:00
pancake
49975ccf95
Fix #3286 - Use stdbool.h
2015-09-14 02:08:31 +02:00
Riccardo Schirone
879182515d
core/bin: rebase only READABLE sections
2015-09-10 23:22:26 +02:00
Riccardo Schirone
7eaf158265
bin/config: set bin.baddr to -1 as default
2015-09-10 02:00:18 +02:00
Riccardo Schirone
01f0ac9316
bin/bin: do not put zero in baddr if invalid
2015-09-10 02:00:18 +02:00
pancake
58d6827bbb
Honor R_SYS_BITS in r2 -
2015-09-01 03:41:08 +02:00
Riccardo Schirone
575d3e9f0a
core/bin: remove loadaddr parameter and get it from the RBinObject
2015-08-29 00:35:09 +02:00
Maijin
6831dd2f6d
Revert "More misc cleanup"
...
This reverts commit 788a3b02c7
.
modifié : libr/bin/format/pe/pe.c
2015-08-28 20:58:21 +02:00
jvoisin
788a3b02c7
More misc cleanup
2015-08-28 19:13:27 +02:00
Riccardo Schirone
def029d548
tools: always pass baddr to r_core_bin_load
...
radiff2: adapt to changes in baddr/laddr
bin/bin: no need to reset the baddr
2015-08-26 20:08:13 +02:00
Riccardo Schirone
cce105056b
bin/bin: rebase paddr with loadaddr
...
In this way, paddr will always be the physical address of something in
the file, even if the binary is in the middle of another file.
2015-08-26 20:08:12 +02:00
Riccardo Schirone
81a8b2a3d5
fix baddr >= 0 and laddr
2015-08-26 20:07:42 +02:00
Riccardo Schirone
36d96770aa
simplify baddr usage
...
* some style fixing
* core/bin: simplify rva function
* bin/bin: avoid passing baddr around
* bin/bin: provide methods to work with baddr
2015-08-26 19:56:51 +02:00
Riccardo Schirone
18eaf1c8c5
format/elf: fix paddr2vaddr and vaddr2paddr conversions
2015-08-26 18:30:33 +02:00
condret
06076207fb
add r_io-wrappers in r_bin
2015-08-24 00:31:35 +02:00
shuall
0807686d86
#3052 all printf member functions changed to cb_printf
2015-08-09 03:25:05 +02:00
Sam
4a0996566c
Fixed small spelling error.
2015-08-05 12:52:20 -04:00
Álvaro Felipe Melchor
b517bc21a2
Fix #3026 - heap use after free
2015-08-04 18:58:24 +02:00
pancake
d054008b17
Implement class methods for DEX and make icj
2015-07-06 02:38:54 +02:00
pancake
c10bcdfbea
bin.filter class names and hashify raw bytes in name
2015-07-06 00:58:51 +02:00
pancake
6ed4d5a94b
Comment the mach0's symtab parser, rabin2 -u and more
2015-07-05 03:25:20 +02:00
pancake
3d1532c4d9
Is ok to have dupped imports
2015-07-05 00:41:06 +02:00
pancake
cdf56a63f8
Add bin.filter=true config var to avoid dupped symbols and imports
2015-07-04 23:42:48 +02:00
pancake
45a83dc38a
Detect Rust binaries in RBinLang for name demangling
2015-06-29 11:22:05 +02:00
Álvaro Felipe Melchor
78d5a78609
Fix COVS
2015-06-04 21:27:41 +02:00
pancake
e19810e875
Fix #2642 - rabin2 -Aj and r2 -ciAj - JSON output for sub-bins
2015-05-29 01:38:31 +02:00
pancake
2353737e17
Fix #2602 - Detect Canary and Go in MACH0 binaries
2015-05-23 10:55:44 +02:00
pancake
e391645137
Bump sdb with lot of bugfixes
2015-05-12 01:53:47 +02:00
pancake
4ced532d69
Tons of fixes and cleanups to make the java tests happy
2015-05-11 18:23:38 +02:00
pancake
8345811ccf
Fix 'bin_strings buffer is too big' issue
2015-04-29 01:34:04 +02:00
pancake
c2a0949e0e
Fix #2437 - Fix invalid Pebble app header crash
2015-04-25 04:12:55 +02:00
pancake
e7f3631457
Fix baddr regression
2015-04-24 02:23:23 +02:00
pancake
070836b326
Honor SIGSTOP without breaking ^Z
2015-04-20 01:05:22 +02:00
pancake
9a94698bd4
Fix #2382 - fix ragg2 crash and pe memleak
2015-04-16 17:24:26 +02:00
pancake
acd5e4b999
Fix dalvik<->dex class and method name resolutions
2015-04-12 05:13:51 +02:00
pancake
68c98b2b05
Remove debug printf, fix crash in rabin2 -qzz
2015-04-01 20:56:12 +02:00
pancake
5f68935551
Fix rbininfo related crash on PE files
2015-03-25 23:12:25 +01:00
pancake
6e52324885
Fix some more null derefs related to the rbininfo change
2015-03-25 17:29:38 +01:00
pancake
dff11411cc
RBinInfo is now dynamically allocated
2015-03-25 14:49:33 +01:00
pancake
c75192e435
Handle babel-node.es6, remove debug printf in rlang and autoinit io in rbin to ease scripts
2015-03-25 12:49:10 +01:00
pancake
12ea9734b5
Fix about 15 more random COVs
2015-03-21 02:04:49 +01:00
pancake
515b2e77bc
Fix about 40 COVs related to memleaks and buffer overflows
2015-03-21 01:27:54 +01:00
condret
73e93b41cb
extend bin-mem-api
2015-03-18 13:36:03 +01:00
pancake
406f14fa1a
Fix null deref in rbin
2015-03-17 11:27:55 +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
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
813cc23bd3
Fix iOS/OSX debugger regression introduced in 90b47a9f20
2015-02-23 01:05:26 +01:00
pancake
90b47a9f20
Drop max file size to make rabin2 -zzz
happy
2015-02-20 00:58:12 +01:00
inisider
d4b9195b95
add detector of msvc and lisence comments
2015-02-19 22:49:44 +01:00
pancake
31e08131d1
Handle RBin demanglers from plugins and support D language
2015-02-11 02:05:22 +01:00
pancake
a22f110979
Fix the rest of fatmach0 tests
2015-02-07 02:32:54 +01:00
pancake
3d2dec8852
Fix rabin2 -A for fatmach0s regression
2015-02-07 02:16:59 +01:00
pancake
1ea6a79d81
Fix null deref when failing to load a fatmach0
2015-02-04 02:40:48 +01:00
pancake
74c3707850
Fix invalid buffer size passed to bin_obj_new()
2015-02-03 23:19:14 +01:00
r0nk
2116a87c0c
fixed a _huge_ memory leak.
2015-02-02 01:44:38 +01:00
pancake
039858fd86
Fix r2 -B, rabin2 -B, Implement oa
command
...
- Now it is possible to load binfiles from debugger memory
* Base address is now honored properly. But it needs more testing
2015-01-29 01:45:39 +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
4c6e2f129c
Add rabin2 -F and r2 -F to force the use of a specific rbin plugin
2015-01-11 19:40:26 +01:00
pancake
ded8790518
Initial support for Swift symbol and imports demangling
2015-01-02 04:32:53 +01:00
pancake
262b0cfd55
A fix for a MACH0 crash
2014-12-11 19:57:01 +01:00
pancake
acade3fee7
Fix more crashes on DEX
2014-12-11 17:21:15 +01:00
pancake
a984b05720
Fix underflow in RIO and clean some null derefs in RBin
2014-12-04 13:02:11 +01:00
pancake
9a0d62da22
Finally remove the void*debug pointer from RIOPlugin (use bool isdbg)
2014-11-21 11:36:51 +01:00
pancake
b1da2b30e3
Fix #1670 - r2 -d 'ls -l /' working again
2014-11-18 11:19:04 +01:00
pancake
b158a7a63b
Fix rabin2 -z regression
2014-11-05 09:46:11 +01:00
pancake
b833c21948
Fix another off-by-one crash in rabin2 -z
2014-11-05 00:37:58 +01:00
pancake
7eea922f35
Fix a tiny off-by-one in rabin2 -z
2014-11-05 00:17:48 +01:00
pancake
cab0c6ae49
Fix crash in r_utf8_decode
2014-11-04 23:17:52 +01:00
Fedor Sakharov
d9a78f33b4
bin: Load symbols before relocations
2014-11-04 13:59:54 +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
pancake
e807868b78
Honor rabin2 -N minstrlen for -z,-zz,-zzz
2014-10-24 20:13:18 +02:00
pancake
131b9092c2
Implement rabin2 -zzz (dump strings to stdout, works on huge files)
2014-10-24 18:26:37 +02:00
pancake
da866539ee
Fix 'oo' bug (sync rcorefile and riofile lists), Better 'ob'
2014-10-17 00:04:52 +02:00
pancake
0e0dc63aa8
Fix r2 -d
problem not loading syms. Redo the ASLR/PIE again
2014-10-15 15:41:02 +02:00
pancake
abd7bcda90
Hackaround for pie bins
2014-10-08 01:54:09 +02:00
pancake
9f962a05ab
Fix r2 -zz and rabin2 -zz, also set default minstrlen for ELF/ELF64
2014-10-07 22:55:10 +02:00
pancake
38a1ded448
Fix rabin2 -a arm -b32 -c ...
2014-09-26 18:13:55 +02:00
pancake
ac22f9e25c
Fix several COFF parsing crashes. Bring back /B
2014-09-20 19:28:56 +02:00
pancake
fc2bb2af7f
Fix 4GB issue file and some more warnings
2014-09-20 15:53:29 +02:00
Jonathan Neuschäfer
64574ac5fb
Fix an one-byte buffer overflow in string_scan_range
2014-09-18 18:56:57 +02:00
pancake
32173be9ee
Fix RBinInfo.static
2014-09-09 00:33:31 +02:00
pancake
8204e78c3f
Fix RBin & RLang related crashes (fix lot of memleaks and dblfrees)
2014-08-29 16:27:44 +02:00
pancake
67171b86a5
Hackaround to get r2 -B0 working.
2014-08-28 00:19:51 +02:00
Jonathan Neuschäfer
ed2470bc2c
Avoid a few out-of-bounds reads
...
* When "omr" is called without any arguments
+ instead just do nothing
* in string_scan_range
* unbounded pdj now works under ASAN.
+ But what did the +5 do there?
* on px/ without arguments
2014-08-26 03:45:14 +02:00
pancake
cda3d9c44b
Update sdb and workaround all sdb finalization issues until proper fix is done in Sdb
2014-08-25 01:10:10 +02:00
jvoisin
052d576ae6
coverifix
2014-08-24 19:40:08 +02:00
pancake
1386bbd2b8
Fix crash in elf parser (rbinfile != rbin != rbinobj)
2014-08-19 11:37:17 +02:00
jvoisin
9b99c0135d
Even more coverifix
2014-08-18 15:03:02 +02:00
pancake
4b7e3cdd3f
Fix CID 1231791
2014-08-17 20:22:30 +02:00
pancake
a0570b4144
More fixes related to paddr/vaddr on PE/ELF/XBE
2014-08-15 12:47:05 +02:00
pancake
a6ad71eccb
Implement '/B' to search for known RBin headers
2014-08-11 03:48:51 +02:00
pancake
9a55e866b0
Fix rabin2 -Z . Implement it for DEX too.
2014-08-07 01:00:04 +02:00
pancake
5f3dda2bc2
Optimize loading big binaries, mostly for PE ~20x faster
2014-08-05 01:42:22 +02:00
jvoisin
f7b05fe65d
Coverifix rampage!
2014-08-04 01:21:38 +02:00
jvoisin
d026752e4e
Add a check to plugin loading, thanks davispuh
2014-08-03 17:30:21 +02:00
pancake
314ab38a78
Fix all latest coverity issues
2014-07-21 17:51:20 +02:00
pancake
e94817a78b
Fix PE bin strings offsets and types
2014-07-17 21:56:35 +02:00
pancake
cf64a5dd75
Fix #1117 - Bring back rabin2 -c
2014-07-17 09:40:35 +02:00
pancake
5ce3dd71ab
Autodetect ARM thumb symbols and expand analysis. Tested on ELF/MACH0
2014-07-17 03:34:16 +02:00
pancake
178464ea36
Apply LemonBoy's patch to fix string offset in va
2014-07-14 00:06:00 +02:00
LemonBoy
10dc0c6ef4
Make the PE header return vaddrs relative to the image address
2014-07-11 23:32:44 +02:00
LemonBoy
e8dd114774
Re-enable the hack that makes the world tick, one day we'll get rid of that
2014-07-11 23:32:44 +02:00
LemonBoy
0acf0b1dd2
Various fixes to stop the vaddr translation madness
2014-07-11 23:32:44 +02:00
LemonBoy
fa75d37e7f
Fix a tiny memory leak (hah)
2014-07-09 17:16:57 +02:00
jvoisin
b0375a3904
strchr takes the lowest 8 bits of that only so 0x10a would appear as 0x0a making it segfault when doing the array access
...
Kudos to TheLemonMan
2014-07-07 16:03:51 +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
Jonathan Neuschäfer
9d8dbbd7e8
r_bin_reload: initialize len_bytes, avoid unpredictable allocation
...
The problem here is that r_io_desc_read checks out_sz, the argument
&len_bytes is passed as, and uses *out_sz as the number of bytes to
allocate unless its UT64_MAX. So, instead of passing an uninitialized
value, initialized len_bytes to UT64_MAX.
2014-06-21 01:39:33 +02:00
Jonathan Neuschäfer
4c612db79b
a few cleanups in bin and lang
...
* libr/bin/bin.c: remove duplicate condition (xtr && xtr)
* libr/bin/p/bin_elf.c!libs: use r_list_newf
* libr/lang/p/Makefile: add empty "clean" target to silence make warning
2014-06-14 02:14:08 +02:00
pancake
3e5eb05eda
Fix PE exports parsing (adapted inisider patch) and some code cleanup
2014-06-13 16:00:39 +02:00
pancake
63ae19c650
Implement RBinInfo->is_stripped for MACH0 files
2014-06-10 20:50:48 +02:00
pancake
0ea452d0f5
Fix build
2014-06-06 00:06:30 +02:00
pancake
7322a152e1
Minor fix for search in iova
2014-06-05 04:14:37 +02:00
deeso
d82e709d0d
fixed use after free possibility from r_bin_reload
2014-06-02 17:16:57 +02:00
Fedor Sakharov
3a0422db24
bin: Delete the list of objs instead of deleting current object
...
Fixes #971
2014-06-02 17:15:48 +02:00
pancake
8d663ceb94
Some rework on RBin.baddr and laddr to make it work again
...
Not all fileformats return correct data in Sections, this is
why sometimes the relocation with baddr (needed for aslr) fails
on mach0 for example. This code needs to be redesigned and fixed.
2014-05-29 00:49:28 +02:00
pancake
d65700dedd
Fixes to make RBin/RIO more consistent for bindings
2014-05-28 18:58:53 +02:00
pancake
6266fc66c7
Minor fixes
2014-05-28 17:49:32 +02:00
pancake
810b976b73
More regression fixes for baddr on ELF and MACH0
2014-05-26 12:04:07 +02:00
pancake
576c9d6221
Fix ASLR (rabin2, r2 -B working again), sort i? output
2014-05-26 03:06:29 +02:00
pancake
5d9751e9e2
Remove global in RBin
2014-05-26 00:39:23 +02:00
pancake
8c0ed5a6ee
Update capstone and embed it into the 'make dist' tarball
2014-05-25 03:58:58 +02:00
Adam Pridgen
e6f8c63b7a
Debugger returned '0' for size and not UT64_MAX which was unexpected
2014-05-21 19:38:20 -05:00
pancake
29ee197638
Optimize RMeta.add() and bump sdb for updated optimizations
2014-05-22 02:15:26 +02:00
pancake
e7d3a629a5
Remove file size limit in RBin
2014-05-22 00:59:31 +02:00
pancake
ff939fd048
Implement #956 (rabin2 -k - prompt) and fix r_bin_load()
2014-05-22 00:12:30 +02:00
deeso
a702c82ac8
Enhance performance with reduced mallocs at load time
2014-05-21 13:02:02 -05:00
pancake
a1224b2156
Refactor rva > vaddr and offset > paddr.
...
That change may make mixing vaddr and paddr more visible
2014-05-21 03:18:00 +02:00
pancake
879f295365
Fix bin.rawstr (rabin2 -zz), some offsets wrong in PE
2014-05-19 02:41:53 +02:00