Commit Graph

17421 Commits

Author SHA1 Message Date
Fangrui Song
a244064276 Support more terminal attributes other than bold. (#9535) 2018-02-28 17:54:39 +01:00
Giuseppe
9a3fe466fd Fix travis build error (#9537)
Trying to clone user branch of
radare2-regression was failing when user
didn't push test, but that should still
exit with status 0 or travis will mark
the build as failing.
2018-02-28 14:15:29 +01:00
Riccardo Schirone
795f3a8f1c core/cbin: do not set symbol flags for sections and file symbols 2018-02-28 14:14:55 +01:00
Riccardo Schirone
c38f140c67 bin: do not filter out symbols and do not duplicate relocs addresses
Multiple import relocations that points to the same symbols, should have
the same address in the disassembly. For example, if two points in the
code need to be patched with the address of imp.free, both points should
contain the same address and not reloc.free_1 and reloc.free_2.
2018-02-28 14:14:55 +01:00
Riccardo Schirone
42ab0a48d5 libr/core: do not add Cd metadata if relocations is in exec sections
When relocations are directly in the code, adding a Cd metadata makes
the visual disassembly wrong, because it appears as there are some data
in the middle of the code.
2018-02-28 14:14:55 +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
pancake
92996067db BlindFix #9503 - Check core->file for NULL 2018-02-28 10:34:04 +01: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
pancake
df48171b2d Update coding style rules for braces 2018-02-28 01:24:03 +01:00
pancake
7b5ab319f8 Revert V* behaviour, add < command and make dietline reuse rcons.readChar 2018-02-28 01:19:08 +01:00
pancake
ebd92e91be Fix #9514 - Initial sys/purge.sh distro to remove r2 distro packages 2018-02-28 00:50:01 +01:00
pancake
976422cc0b Improve RCons.readPush and add .readFlush() to make V* happy 2018-02-28 00:37:19 +01:00
pancake
2497fb6f51 Implement r_cons_readpush() new api and fix the V... automation 2018-02-28 00:26:41 +01:00
pancake
19bdc6f41a Fix crash in oodr 2018-02-28 00:18:09 +01:00
pancake
aca973f31f Fix #9525 - e graph.format=? and missing help for @@iS 2018-02-27 23:46:47 +01:00
pancake
6cdd273d5c Implement @@iS RBin.Section foreach operator 2018-02-27 23:10:28 +01:00
pancake
964cc83a17 Fix #8979 - Implement @% suffix operator 2018-02-27 22:54:42 +01:00
Debily
da51abb7cb Removed some of the asserts in jemallocs internals (#9429)
* Removed some of the asserts in jemallocs internals, tagged the unmodified (grep for them with my name)

* removed the `#ifdef JEMALLOC_DEBUG`s

* Removed the comments
2018-02-27 22:30:40 +01:00
Oleksij Rempel
680fd9d397 fall back to cfg.bigendian of bin autodetection is not working (#9528)
If we work on baremetal binary the autodetection is not working.
In this case Po "project open" and "e asm.arch =.." set always to LE,
even if cfg.bigendian = true.
This patch should change the logic to fall back to cfg value.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2018-02-27 22:28:33 +01:00
Riccardo Schirone
8000d18125 Test PRs with radare2-regressions PRs (#9515) 2018-02-27 22:26:54 +01:00
pancake
b3d465f38e Fix build and move anal.setHints from plug to the anal loop 2018-02-27 19:13:12 +01:00
Fangrui Song
0ac144d06a Clean up io and add some comments
* Add prefix mode r_io_nread_at
* Add r_io_read_at_mapped
2018-02-27 18:41:52 +01:00
Giuseppe
02b77432c1 Call r_debug_kill with pid of attached process (#9453) 2018-02-27 18:40:32 +01:00
pancake
e1bc01d912 Fix conditional around r_debug_kill 2018-02-27 18:40:15 +01:00
fcasal
31528d532b Added =h? command 2018-02-27 18:37:45 +01:00
Farid AYOUJIL
fe50df8449 Adding help message for multiple commands (Relative to issue #9526) (#9529)
* Adding help message for multiple commands (Relative to issue #9526)

* Refactoring help messages for = command and fixing issue #9526
2018-02-27 18:30:36 +01:00
Siarhei Siniak
a792aaafbe Add tcp.islocal to rtr (#9508)
1. Currently, tcp server binds any interface. The option
    allows to restrict the binding to loopback interface only.
    e tcp.islocal=true.
2018-02-27 13:11:26 +01:00
Evan Carroll
c12418f05f moved to markdown extension (#9522) 2018-02-27 10:54:54 +01:00
xarkes
70bd99da25 Fixed wrong ecoj behaviour 2018-02-26 23:18:29 +01:00
xarkes
9d36f29f99 Monokai color improvements #9487 2018-02-26 18:50:27 +01:00
sivaramaaa
4cb630a602 Fix #9467,restore seek while quiting graph (#9519) 2018-02-26 18:49:55 +01:00
Farid AYOUJIL
c52849b03b Adding 'F' format for double 'f' is float (issue #7318) 2018-02-26 17:11:11 +01:00
xarkes
2008686116 Fixed missing r_config_set_i for scr.color 2018-02-26 15:52:47 +01:00
Khairul Kasmiran
3a29092f97 Check ds only once in myregwrite 2018-02-26 22:27:58 +08:00
pancake
324500731b Fix build. no need to make rhash depend on rutil 2018-02-26 15:09:10 +01:00
Khairul Azhar Kasmiran
4bc314526a Color asm.cmt.right=false cmts as per palette (#9502) 2018-02-26 12:46:13 +01:00
Farid AYOUJIL
2520fd4e73 Fix entropy for issue #9366 (#9510)
* Fix entropy for issue #9366

* Using 'r_str_newf' and adding spaces before '('
2018-02-26 12:42:15 +01:00
Khairul Azhar Kasmiran
cf4efd5984 resize_read_buf -> modify_read_window (#9507) 2018-02-26 10:01:25 +01:00
Fangrui Song
b9832fc2e5 Reduce core->block in cmd_print.c 2018-02-26 09:59:41 +01:00
Abdel-Rahman A
22faa82a46 Adjust avj to output all method names. (#9513) 2018-02-26 09:56:32 +01:00
sivaramaaa
2f76b33769 Fix #9470, fix fd. to print all flags at given offset (#9504) 2018-02-25 10:31:33 +01:00
xarkes
ce6a253258 Fixed HTML color code parsing (ec btext #ef8d1aa) 2018-02-25 09:36:41 +01:00
bannsec
7421a7347b Fixing dependency (#9501)
Looks like there's one dependency change missing for Debian 9. Added that and it builds fine locally.
2018-02-24 20:40:04 +01:00
pancake
d045b70c2d Fix crash in RConfig.setString(int) and add VbT to browse themes 2018-02-24 19:44:09 +01:00
Khairul Azhar Kasmiran
bcb7dcf717 bf: fix crash when unbalanced loop and no aes (#9495) 2018-02-24 19:17:00 +01:00
Ariel Schon
30278ae14f Autocomplete project open (#9496)
* Added initial code for file completion - also completes from CWD :(
* Changed to use near-same code as in the 'Pl' command, still shows current directory files??
* Added comparison to select only the similar results. However, they are weirdly displayed.. UTF?
* Previously I pointed tmp_argv to foo, which was beeing freed.. I pointed it to a new string (r_str_newf). Now it works!
* Added check to make sure projectspath is not null.
2018-02-24 19:15:55 +01:00
xarkes
d5f57a7ccb Fix fg+background colors handling 2018-02-24 19:14:55 +01:00
xarkes
d225c83d11 Easier meson instructions 2018-02-24 14:41:22 +01:00
Giuseppe
8bf8d7ff40 Fix wrong make uninstall command (#9494)
It tried to cd to a no longer-existent directory,
using a never existed `./libr/sysregs/d/Makefile`
2018-02-24 13:48:11 +01:00
xarkes
b2b647a5f7 Renamed COLOR_MODE constants 2018-02-24 12:04:48 +01:00