1946 Commits

Author SHA1 Message Date
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
pancake
5a171f1450 Fix memleak in RCore.anal_refs and fix regression 2018-03-14 18:31:55 +01:00
pancake
dc74fbd746 Fix more memleaks 2018-03-14 15:31:08 +01:00
pancake
1b30ca283c Fix RPrint.strconv_mode memleak 2018-03-14 12:37:11 +01:00
Vasco Franco
e16c35bc66 Refactores function r_str_split_list to receive the character to split by (#9672) 2018-03-13 13:49:49 +01:00
Khairul Azhar Kasmiran
b2f301fb07 Disasm now honors str.escblash (#9667) 2018-03-12 15:54:05 +01:00
Khairul Azhar Kasmiran
4b7ee94873 r_name_filter: treat \a as special char too (#9655) 2018-03-11 16:10:54 +01:00
Khairul Azhar Kasmiran
6eaf7bafa9 Escape \v and \a in disasm (#9645) 2018-03-11 14:32:28 +01:00
Vanellope
3ef95a0856 Fix V! stack pane stuck (#9596)
* Got the fix i added back to ansi crop so that the api works like the way it should
* Fixed all the glitches at once!
2018-03-08 01:01:09 +01:00
Vasco Franco
a4de64b169 Fixed null pointer deref in p_format.c (#9623)
Fixed null pointer deref in the command 'pf E' when it didn't receive an argument.
2018-03-07 21:59:20 +01:00
pancake
30e98b24be Fix: ed works when no r2rc exists, add RFile.touch() and fix .dump() 2018-03-07 01:20:06 +01:00
pancake
92fc73f7d9 Partially enable utf8 in visual panels and honor color theme 2018-03-05 23:32:27 +01:00
Ayman Khamouma (ak42)
a95f9429d0 fix #9545: allow subsequently loaded cpython modules to access libpython symbols (#9570) 2018-03-05 18:16:34 +08:00
Jack Baker
5e93912b24 Fix colorizing real-mode addresses twice (#9573) 2018-03-04 22:29:40 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
pancake
8d675ab95a Fix glitch in graph cropping introduced in 173c7ee49fd4d2c70ae6d4aa9a99602b41f50cea 2018-03-01 12:01:29 +01:00
michaelbr92
e71d6c01b7 Add escape encoding for json in print format ascii string (#9497)
* add escape encoding for json in print format ascii string

* fix review notes

* remove unneeded parentheses in loop condition

* print the whole encoded_char string instead of iterating in an inner loop

* replace all the loops over list in the pfj to use r_str_escape_utf8
2018-02-28 20:58:16 +08:00
Giuseppe
d77ad33b69 Fix mkdir -p for r2 shell (#9532)
Also make r_syscmd_mkdirp return a
string, instead of printing output on
stderr via `eprintf`. This will help
testing.
2018-02-28 01:24:46 +01:00
Farid AYOUJIL
c52849b03b Adding 'F' format for double 'f' is float (issue #7318) 2018-02-26 17:11:11 +01:00
Khairul Azhar Kasmiran
acea95544d asm.asciidot -> scr.strconv=asciidot (#9485) 2018-02-24 12:01:21 +01:00
Riccardo Schirone
729a42c731 Do not overwrite row_offsets while printing disassembly (#9476) 2018-02-23 10:46:39 +01:00
pancake
f9db7d3bdb Implement cp. and fix r_sys_copy on mac/ios 2018-02-21 02:59:46 +01:00
Giuseppe
7a140d71e6 Use different color when pxw unmapped data (#9404) 2018-02-20 23:55:11 +01:00
pancake
c49fe88eea Fix crash in r_th_free (NULL); 2018-02-20 22:24:29 +01:00
pancake
792956c67d Add a loading animation in a thread when using r2 -t 2018-02-20 22:21:38 +01:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
Fangrui Song
e3b9ae9113 Reduce references of core->block (#9425) 2018-02-19 13:30:32 +01:00
Vanellope
173c7ee49f Fixed the bug where the stack pane in V! mode gets stuck when it scrolls down 2018-02-17 17:56:44 -06:00
SkUaTeR
f8cf84e065 Fix some bugs (#9403)
* fixed some bugs
* format bug fix
* added MSVC version _time_stamp_to_str
* struct format
* adjusting output same as linux
2018-02-17 15:14:34 +08:00
Riccardo Schirone
818d9db3c1 util: when writing to a format value, overwrite all bytes (#9392)
Before this patch, when you did:

pf.test xww v1 v2 v3
pf.test.v2=0x1

only the first byte was overwritten, leaving whatever was in the high
byte of v2 there.
2018-02-14 15:06:52 -06:00
pancake
1414625ae0 Fix use of r_list_uniq in disasm, needs more review 2018-02-12 16:00:14 -06:00
pancake
bc84cd06d0 Implement r_list_uniq and fix the multiple main issue 2018-02-12 14:53:35 -06:00
pancake
636d95449f Fix regression in RBuffer.fcpy 2018-02-12 14:17:03 -06:00
pancake
d67742eb60 Support RIOBind on RBuffer for fcpy_at 2018-02-12 10:28:00 -06:00
pancake
d6a174019d Initial support for RIOBind on RBuffer 2018-02-12 09:08:41 -06:00
Rafael Rivera
3031324be3 Initial e dbg.symstore support (#9338) 2018-02-09 11:34:09 +01:00
pancake
5d4439d246 Greenify Travis 2018-01-23 11:21:04 +01:00
pancake
b57fe402c7 Remove noisy printfs and use more calloc 2018-01-22 17:44:33 +01:00
pancake
31d550a54b Introduce r_sys_prefix 2018-01-16 11:58:47 +01:00