2034 Commits

Author SHA1 Message Date
Paolo Monti
b32dd4ca9f Fix #2639, added support for javascript byte arrays in rax2 -F (#10065) 2018-05-11 10:58:16 +02:00
Fangrui Song
5b181a244f Fix meson (#10072) 2018-05-11 09:50:39 +02:00
pancake
52d0496dc2 Add missing -lm 2018-05-10 16:32:46 +02:00
Riccardo Schirone
2af8b55a54 libr/util: fix build by linking with math library 2018-05-10 15:00:27 +02:00
Anton Kochkov
8b46ee3816 Fix Meson build 2018-05-10 19:40:00 +08:00
pancake
32605a8d91 Fix #10060 - Add ?e? help and Implement '?ep' to print PIE charts 2018-05-10 13:13:08 +02:00
radare
9e08da0fa6
Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046)
- Update spp and force hidden visibility
- Use R_API wisely
- RSys.prefix returns const things
- Use -install_name on Apple
- Fix merged lib visibility linking on Linux
- Use OSTYPE instead of BUILD_OS
- Honor crosscompiler-objcopy and support android like linux
- Add extra missing archives
- Fix for android
- Upgrade spp and sdb
- Skip libr. from symstall
- Add --enable-merged configure option
- Use --enable-merged on ios-sdk
- Upgrade sdb again for js0n
- Kill sys/ios-shell.sh
- Msvc dynamic build fix
2018-05-09 23:31:52 +02:00
Francesco Tamagni
68cf813cd8 Add r_buf_new_slice (#10055)
- fix vaddr / paddr translations (and make them meaningful on slices)
- fix r_buf_fcpy_at to work with slices and with file-backed buffers (at least for reading)
2018-05-09 11:50:53 +02:00
pancake
e216f08826 Lowercase some help messages 2018-05-07 12:26:01 +02:00
radare
000e725b15
Use system diff in graphdiff nodes if possible and improve graphviz style (#9988)
$ radiff2 -g sym._call -A  b c | dot -Tpng > a.png

- we need disasmdiff native in r2, as well as more inter-core commands
2018-04-30 02:47:51 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Anton Kochkov
8a224a5f48 Fix AppVeyor 2018-04-25 18:38:45 +08:00
pancake
5a899f2846 Add r_th_try_pause() and improve task threading support 2018-04-25 12:30:57 +02:00
pancake
b99bb97def Improve r_cons_is_breaked coverage 2018-04-25 12:30:57 +02:00
Khairul Azhar Kasmiran
94605e3e67 Fix line highlighting of 2-operand insn (#9949) 2018-04-24 18:03:14 +02:00
pancake
cf7dcf07dc Fix return value for RBuffer.sparse when reading beyond the end 2018-04-24 13:15:25 +02:00
pancake
19c4f5223c Fix a lot of things broken in previous merged PRs. grrrrrr 2018-04-24 11:32:51 +02:00
Khairul Azhar Kasmiran
ec75785c7c Highlight seek line using different background color (#9853) 2018-04-24 09:51:14 +02:00
wargio
058f63e599 fixed ldopen on linux 2018-04-21 18:17:48 +02:00
Khairul Kasmiran
c79874941e Check whether r_num_get is called under r_num_calc and init RNum.nc.errors if not 2018-04-21 11:37:19 +02:00
Khairul Kasmiran
a587390d6c Increment RNum.nc.errors on invalid numbers instead of returning UT64_MAX 2018-04-21 11:37:19 +02:00
Khairul Kasmiran
9b9a3e1baf Prevent dcu to unknown address & return UT64_MAX on invalid numbers 2018-04-21 11:37:19 +02:00
radare
b4b34e98f4
Fix loading of lang-python plugin (#9924)
Otherwise the plugin can't be loaded because of this:

dlerror(~/.config/radare2/plugins/lang_python2.dylib):
dlopen(~/.config/radare2/plugins/lang_python2.dylib, 6):
 Symbol not found: _PyUnicode_1BYTE_DATA
  Referenced from: ~/.config/radare2/plugins/lang_python2.dylib
  Expected in: flat namespace
 in ~/.config/radare2/plugins/lang_python2.dylib
2018-04-20 12:04:56 +02:00
radare
a30c5c3722
Initial work on supporting pauseable CoreTasks (#9921) 2018-04-20 00:25:33 +02:00
radare
a0348bb1b5
Fix #9915 - crash in r_hex_bin2str from asm.c (#9922) 2018-04-18 13:23:03 +02:00
Florian Märkl
b3067bbad3 Replace usages of R2_DATDIR with r_sys_prefix() (#9889)
* Replace usages of R2_DATDIR with r_sys_prefix()

* Minor Fixes
2018-04-15 20:35:18 +02:00
pancake
ed48dc0940 Fix last covs 2018-04-15 10:56:12 +02:00
pancake
6760b26376 Add asm.meta, and make magic when disabled. Fix sys/rebuild.sh cs 2018-04-15 02:29:03 +02:00
sivaramaaa
94ecd410e9 Fix #9870 , fix r_anal_type_get_size and handle enum type 2018-04-14 10:48:16 +02:00
pancake
59d8f4e280 Minor improvements here and there 2018-04-12 11:28:25 +02:00
pancake
848981912f Fix last covs, and some reindents 2018-04-11 10:25:22 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
pancake
324625cb33 Fix oobread in elf parser 2018-04-09 12:27:56 +02:00
pancake
2a8ab337d9 WIP: Initial implementation of RFShell tab autocompletion 2018-04-09 01:15:20 +02:00
pancake
86328fe4fa Fix 'pf *D' on 32 and 64 bit 2018-04-09 00:43:46 +02:00
Riccardo Schirone
98fa3a33c5 util/num: add support for ROR and ROL 2018-04-07 16:49:33 +02:00
radare
dfcf6f745d
Initial transition to use RBuffer in RBin (#9787)
* Initial transition to use RBuffer.io in RBin

- Fixes loading Core files from Virtualbox (> 2GB ELF64)
2018-04-03 20:23:26 +02:00
pancake
6fba433277 Implement r_buf_new_with_io 2018-04-02 03:34:49 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
Riccardo Schirone
170f80d1d7 Remove R_BIN_SCN_MAP flag (#9744) 2018-03-22 22:10:07 +01:00
pancake
0a71d05535 Use r_cons_printf in ?a and do not use oneliner strings in ascii_table.c 2018-03-21 23:10:17 +01:00
Akshay Ajayan
fc424815a2 Move ascii table to utils and add ?a command in r2 2018-03-21 18:36:42 +01:00
pancake
24282de142 Fix #9726 - 1 byte oob read in dalvik analysis 2018-03-21 16:04:15 +01:00
Dirk Eibach
d45faff871 util: Fix harcoded segment granularity in r_print (#9723)
Fix the hardcoded assumptions on segment granularity in r_print.

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
2018-03-19 16:42:07 +01:00
pancake
fe7ae5d0af Fix last 20 coverity issues 2018-03-19 11:51:04 +01:00
Florian Märkl
d6e3036322 Propagate changes of fcn->_size in anal->fcn_tree 2018-03-18 15:11:29 +01:00
Farid AYOUJIL
a3eaa10f69 Adding trie to util 2018-03-16 11:11:17 +01:00
Gromimousse
a5c9fc7855 Ragg2-cc -> Ragg2 merge (#9658)
- change of 'access' function for 'r_file_exists' for windows portability
- several changes in the way ragg2.c is done, see PR #9658 pancake comments
- change function for the remove of 'file'.text
- open changed for r_file_dump
- some elt of cEnv_t are now const
- skip all the pointers verification in set_cEnv but do them in check_cEnv instead
- add 2 r_str_sanitize for file and CC in parseCFile
- rewrite the removal of .o, .tmp, .bin, .s files, with cleaner code
- changed the long command with sed and grep to 2 C functions.
  - The function parseCompiled that basically does what the command was doing
  - And r_str_stripLines that is equivalent to "grep -v" (maybe we should put this one in str.c ?)
- simplify a bit getCompiler function with a const char* array
- add ternary operator for armOrMips condition
- use r_file_path for finding path to compilers
- new file created in libr/egg which contains all the C file parser
- modifications of 2 files to match the change :
  - libr/egg/r_egg.h
  - libr/egg/Makefile
- the function r_str_stripLine is simplier (the mallocs wasn't needed)
- the function r_str_stripLine is moved to libr/util/str.c
- libr/include/r_util/r_str.h is changed accordingly
2018-03-15 11:48:21 +01:00