Thomas Bailleux
4ab85b70e5
Fixes #9318 - Replace return by break, fixing the infinite loop (input* wasn't consume entirely) ( #9597 )
2018-03-06 01:33:12 +01:00
pancake
92fc73f7d9
Partially enable utf8 in visual panels and honor color theme
2018-03-05 23:32:27 +01:00
pancake
046d38a746
Fix some uninitialized variables for DEX
2018-03-05 18:44:55 +01:00
pancake
4cfdbcc678
Remove asm.bbinfo
2018-03-05 18:33:16 +01:00
pancake
c60d937658
Unsigned cast for mz entrypoint
2018-03-05 18:22:47 +01:00
Anton Kochkov
878c53491e
Fix MZ warnings
2018-03-05 21:42:05 +08:00
Khairul Kasmiran
3819134003
Cannot initial declare in for loop
2018-03-05 21:04:38 +08:00
Anton Kochkov
602a5b9cef
Fix #9387 - MSVC demangling in PDB
2018-03-05 20:25:05 +08:00
Rene Laemmert
2fe71e69da
added my theme ( #9589 )
2018-03-05 12:47:20 +01:00
pancake
0487c52169
Remove project directory if empty with P-
2018-03-05 12:11:54 +01:00
Benno Fünfstück
18bffe1257
feat(anal_avr): implement opcode masking for improved zignatures ( #9569 )
...
AVR instruction encoding is weird, we really need custom masking to get useful
zignatures.
2018-03-05 11:39:48 +01:00
Benno Fünfstück
6c77168732
feat(anal_avr): add missing opcode info (val, ptr) ( #9568 )
2018-03-05 11:23:03 +01:00
Riccardo Schirone
61036b3dd3
Fix tmpseek in visual with asm.emu ( #9585 )
2018-03-05 11:22:43 +01:00
radare
78d53e68d1
Remove wtf for bf->narch ( #9583 )
2018-03-05 11:20:50 +01:00
pancake
7f07d52008
Fix #9550 - UAF in VVOOO
2018-03-05 11:20:15 +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
Jay Bhavsar
1b03ccf6c0
Fix #9500 - remove projects
2018-03-05 10:14:00 +01:00
Khairul Kasmiran
1783ebd848
izj-type cmds: fixed spurious initial comma when using string filtering
2018-03-05 17:01:21 +08:00
vdf-git
e85be034e3
solves issue #9524 ( #9559 )
2018-03-05 09:40:31 +01:00
Riccardo Schirone
867f7526a9
Fix pd syntax (also aex and pa) ( #9578 )
...
* core/cmd_print: remove redundant code from "pd" command
No need to have tmp arch and tmp bits in the syntax, we can use @a and
@b. Also, fix @a and @b to temporarily overwrite anal hints.
* core: remove useless code in "pa" and "aex" commands
No need to have arch and bits in the command syntax, just use @a and @b.
* core: address coding style comments
2018-03-05 09:25:20 +01:00
Jack Baker
fac9ac9d3c
Find _main in MSVC-compiled MZ binaries ( #9586 )
2018-03-05 09:21:55 +01:00
Anton Kochkov
6a41524599
Revert "char* is a pointer ( #9580 )"
...
This reverts commit d57ae7ae1b
.
2018-03-05 12:33:11 +08:00
Anton Kochkov
1aaeba1c95
Fix Meson build
2018-03-05 12:26:08 +08:00
Guillaume Valadon
d57ae7ae1b
char* is a pointer ( #9580 )
2018-03-05 00:18:42 +01:00
Paul I
13f7013696
Meson: Added sdb building/installation rules ( #9575 )
2018-03-05 00:10:28 +01:00
Khairul Azhar Kasmiran
59d556d872
Aligned XREF comments like other comments ( #9551 )
2018-03-05 00:08:50 +01:00
pancake
03ff82839d
More code cleanup in RBin api for file and obj
2018-03-05 00:05:17 +01:00
pancake
0e692944a4
Refactor RBin for file and obj, mach0 headers to stdout
...
- Show CODESIGN load command offset+size
2018-03-04 23:52:45 +01:00
Jack Baker
5e93912b24
Fix colorizing real-mode addresses twice ( #9573 )
2018-03-04 22:29:40 +01:00
Khairul Azhar Kasmiran
3c7ee36386
izz/izzj works with -n without using rabin2 ( #9561 )
2018-03-04 22:04:56 +01:00
Florian Märkl
0570001038
Make idpi independent of bin loading ( #9560 )
2018-03-04 22:02:30 +01:00
sivaramaaa
c3faf2f033
Fix #9512 , Fix asm.emu.str and restore asm.emu in pds ( #9556 )
2018-03-04 22:02:07 +01:00
Benno Fünfstück
61198eca8f
fix(anal): use r_anal_op_free instead of free for op ( #9565 )
2018-03-04 21:54:44 +01:00
Lowly Worm
12d291be0f
fix double free in r_fs_find_off_aux
2018-03-04 11:10:19 -08:00
Florian Märkl
067ae7030d
Fix out of bounds write in vtables ( #9571 )
2018-03-04 00:43:44 +01:00
Florian Märkl
5e1f811ec0
Fix meson indentation ( #9567 )
2018-03-03 22:08:37 +01:00
xarkes
41b8e7d110
Fix dbtj json output
2018-03-03 19:38:27 +01:00
xarkes
00668df334
Fix non closing on readline failure (windows)
2018-03-03 17:49:27 +01:00
Giuseppe
f345d7cccc
Normalize usage output for some o
commands ( #9562 )
2018-03-03 17:06:06 +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
Riccardo Schirone
cb002bc25c
core: fix @B and add some undocumented commands
2018-03-03 10:50:19 +01:00
Riccardo Schirone
62850d9000
core: add undocumented command in graph mode
2018-03-03 10:50:19 +01:00
Riccardo Schirone
ee936475fb
core: print | char to print bbline
2018-03-03 10:50:19 +01:00
securisec
84ead4285f
Create darkda ( #9555 )
2018-03-03 10:49:54 +01:00
pancake
fda9737c42
Fix #9549 - Make @@@ work, add better help, use single char operators
2018-03-02 18:58:14 +01:00
pancake
b860076802
Fix #9541 - VC rotates scr.color instead of toggling
2018-03-02 17:58:44 +01:00
pancake
b1212240a1
Blindfix #9506 - null deref i cant reproduce
2018-03-02 17:52:36 +01:00
Giuseppe
a668ad4712
Make wopO stop when value isn't starting with 0x ( #9538 )
2018-03-02 11:03:05 +01:00
Jack Baker
cd1ab13e78
Additional _main signature for MSVC ( #9546 )
2018-03-02 11:02:33 +01:00
pancake
040dbad8a3
Add mach code signature magic entry
2018-03-01 19:03:20 +01:00
pancake
b4d3a78989
Use io.pcache instead of io.cache, improve speed, we dont need change logs here
2018-03-01 16:34:18 +01:00
pancake
59f3217ea8
Enable io.cache for afta too under aaaa.. we must optimize io.cache
2018-03-01 15:37:13 +01:00
pancake
de098d28f6
Improve autoanalysis support for noob users
2018-03-01 12:59:13 +01:00
pancake
346ad9b899
Fix #9489 - enable io.cache when using aaaa
2018-03-01 12:49:37 +01:00
pancake
8d675ab95a
Fix glitch in graph cropping introduced in 173c7ee49f
2018-03-01 12:01:29 +01:00
Duncan Ogilvie
e8621872b8
fix r_io_reopen when reopening with write access on windows ( #9539 )
...
workaround for #8840
2018-03-01 11:49:40 +01:00
pancake
e894b56205
Add more clippies
2018-03-01 10:53:53 +01:00
redmed666
2b9c554724
Implement axgj
...
* Added axgj option in the ax help menu
* Added an opts field for anal_axg in order to allow json output
* Added an if case for axg (allows json output)
* Added some checks for the json output from axg in order to have a correct json object
2018-03-01 10:50:56 +01:00
Vanellope
6b36d7773b
added in some missing codes to synchronize the offset of the disassemly in panels and visual ( #9542 )
2018-03-01 13:58:20 +08:00
Vanellope
82374ce2d7
Fix disasm scroll issue when invalid on panels
2018-02-28 22:16:11 +01:00
Fangrui Song
a244064276
Support more terminal attributes other than bold. ( #9535 )
2018-02-28 17:54:39 +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
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
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
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
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
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
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