262 Commits

Author SHA1 Message Date
a1ext
233e1b5d7b Clean up of PR #13441 (#13455) 2019-03-22 00:41:11 +01:00
a1ext
225314bca4 Fix #1179 - itj hashes calculation command has fixed (#13441)
* Fixes #1179 - `itj` command has fixed, small refactoring on hashes storage, removed obsolete `file.sha1` usage
* Show all the different hashes on `it` and `itj`
* `it` and `itj` refactoring.
PJ optimizations have made, added more arguments checks
2019-03-21 11:02:48 +01:00
Mahesh Kale
dc7abc8731 Change order of ? And i output (#13418) 2019-03-19 18:11:53 +01:00
Khairul Azhar Kasmiran
a478cdfc5f bin.str{purge,filter} -> bin.str.{purge,filter} ##core 2019-03-19 17:34:59 +01:00
radare
913c99b4e1
Compute file hashes on request via it and compare if has changed ##bin 2019-03-09 17:36:59 +01:00
pancake
d84fbdf9c4 Fix null string issue in afi and add afcf in afij ##anal 2019-03-08 10:08:48 +01:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
Riccardo Schirone
fb1b7fbc56 Make ASAN green again (#13098)
* Fix ASAN crash in abtj
* Fix ASAN crash in asj
* Strdup the input because it is a const char * and shouldn't be modified
* Fix some r_assert warnings (related to len==0)
* Check if there are enough words only when necessary
* Other len == 0 edge cases that do not belong to r_return_* checks
* Do not print classes if there are none
2019-02-14 18:07:08 +01:00
David CARLIER
62cc1c782c Adding one level into the hashes JSON (#13045) 2019-02-10 23:42:08 +01:00
pancake
92e4256c19 Change -T behaviour and rename iF into it ##bin 2019-02-10 02:30:07 +01:00
David CARLIER
bbfc4a8747 Fix the file hash computation ##bin 2019-02-10 01:27:07 +01:00
David CARLIER
3cff12a7c0 Add iF to show file hash and related refactoring ##bin 2019-01-24 17:34:00 +08:00
Maijin
2cc9343d08
Fix isqq #command 2019-01-20 20:14:38 +01:00
GustavoLCR
7530895d0a Fix a few clang scan-build bugs (#12562)
* Removed unnecessary variable from libr/core/disasm.c
* Removed not necessary assignment in libr/core/casm.c
* Removed not used assignment in libr/bin/dwarf.c
* Rem. duplicate declaration and not used values
* Fixed potential memory leak in java/class.c
* Fixed potential memory leak in ragg2
* Removed unnecessary variable in visual.c
* Another potential memory leak in class.c
* Removed not used value assignment
* Fixed memory leak in dwarf.c
* Removed not needed assignments
* Remove more not used assignments
* Refactored where bin_sections gets arch & bits for clarity
* Removed more assignments that are not used
* Rem. more unused assignments
* Surround assignment with paranthesis
2018-12-26 12:54:12 +01:00
Florian Märkl
a906b41a46 Rename r_str_escape_utf8_to_json to ...for_json 2018-11-29 16:55:01 +01:00
Florian Märkl
523aafa359 Replace r_str_utf16_encode() for escaping strings for json (#12259) 2018-11-22 10:55:21 +01:00
pancake
1d7967423a Fix #12111 - Add help for iS= 2018-11-14 23:49:57 +01:00
pancake
d5d7632b77 Implement help in all the i subcommands ##bin 2018-11-14 23:49:57 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
r_num_abs:

- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long

r_num_units:

- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point

  * This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss

r_num_tail_base:

- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble

Update all functions to use with new r_num_units:

- Remove side effect when using in other functions like cb_printf

* Trim trailing .0 when input is power of 2
2018-11-14 23:35:44 +01:00
Maijin
583c7c95ba Fix #11947 and fix #11945 - Implement iS= and iSq. ##bin 2018-10-29 23:33:40 +01:00
davidpolverari
69286b61c6 Fix iS= assert warnings 2018-10-27 19:24:14 +02:00
Aaron
a6725edb1f Fix #10324 - Implement RLog API for leveled logging ##core (#11786) 2018-10-27 05:29:22 +02:00
davidpolverari
8a22c89461 Fix #11923: Early null check in cmd_info.c iz cmd (#11928) 2018-10-24 18:46:14 +02:00
Riccardo Schirone
6115f00455
remove r_bin_load_io2 and rename MODE defines ##refactor
PR #11888 

* bin: no need for 2 r_bin_load_io APIs
* bin: remove io-related unused functions
* r_bin.h: remove some old comments
* r_bin.h: group together related APIs
* extract print/set modes in r_types, to remove dups in r_bin and r_core
* clang-format-diff: fix ternary operator indent for pancake
2018-10-24 16:54:57 +02:00
minhnxd
f95120bb4e Check for NULL on obj member before calling r_list_length (#11894) 2018-10-22 17:26:59 +02:00
radare
136db63c05 Fix help and autocompletion for id* (#11845) 2018-10-18 11:52:33 +08:00
pancake
1c57059e89 Fix assert in ic 2018-10-07 00:38:39 +02:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Maijin
2b8c94c2cf Fix #11418 dbg_file in full (#11453) 2018-09-10 16:25:50 +02:00
kriw
928f7be1e7 Fix command izzj (#11083) 2018-08-16 11:05:40 +02:00
Fangrui Song
31629a4f8e cmd_info: add command names beside case labels (#10907) 2018-08-03 08:43:13 +02:00
Maijin
70f65c9521
iX for listing .c found with dbginfo #6159 (#10892)
* iX for listing .c found with dbginfo #6159

* iX for listing .c found with dbginfo
2018-08-02 10:10:17 +02:00
Khairul Kasmiran
51e293663b Fix ieej output 2018-07-18 19:33:12 +02:00
Khairul Kasmiran
2d83bb2a26 entries->initfini for ieej/rabin2 -ee -j since former key is already used 2018-07-18 19:33:12 +02:00
Khairul Kasmiran
2772bf30aa r_cons_printf -> r_cons_strcat in cmd_info_bin() 2018-07-16 17:10:20 +08:00
Florian Märkl
a5b3ff9486 Make izz more task-safe (#10373) 2018-06-17 15:12:54 +02:00
Khairul Kasmiran
b84fb472d0 iSSj: json output for iSS 2018-06-10 21:02:05 +02:00
Khairul Kasmiran
2e686b95ab Added hash algo choices to iSS help 2018-06-10 03:30:25 +02:00
Khairul Kasmiran
e2e9c993a3 Moved segments from iS/'rabin2 -S' to iSS/'rabin2 -SS' 2018-06-10 03:30:25 +02:00
Maijin
5d11df9c16
Add more meaningful help for iO 2018-05-10 15:55:05 +02:00
pancake
5578d8d1ae Implement iO as a frontend for !rabin2 -O 2018-05-09 23:25:03 +02:00
Paul I
511ad23fb1 Fix missing msvc lang for iD command (#9891) 2018-04-15 22:55:23 +02:00
pancake
6ccc44e3f8 Minor fixes 2018-04-11 11:44:12 +02:00
pancake
5cde546971 Fix aae on x86-64, improve Vx, add sys/rebuild.sh tcc, .. 2018-04-11 02:32:27 +02:00
pancake
c6b34180a4 Two more sdb_fmt leftovers 2018-04-10 23:54:04 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
Khairul Kasmiran
500c219b71 iee: include preinit funcs 2018-04-09 10:40:42 +02: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
145b7aceac
Fix minor issue in izz (#9377) 2018-02-12 01:44:00 +05:30