Commit Graph

1759 Commits

Author SHA1 Message Date
Deepak Chethan
99ecf7950b Use pj api in rasm2 2019-02-10 23:37:27 +01:00
pancake
92e4256c19 Change -T behaviour and rename iF into it ##bin 2019-02-10 02:30:07 +01:00
David CARLIER
cebf7f6938 Compute hashes only with a new r2 flag ##bin 2019-02-10 02:11:25 +01:00
Rahul Sangwan
39dea00faa Update ragg2 man page ##ragg2 2019-02-10 01:28:35 +01:00
Rahul Sangwan
be654b89d3 Unescape chars when using rax2 -S
this commit resolve second part of #12862 (#12985)
2019-02-08 16:37:42 +01:00
Deepak Chethan
7e5f4e47a5 Added the append string feature for ragg2 ##ragg2 2019-02-06 17:07:43 +01:00
pancake
75354b4587 Fix warnings 2019-02-05 00:35:01 +01:00
GustavoLCR
c1d0e59d4d Fix rabin2 extract path for Windows ##bin 2019-02-04 15:55:06 -06:00
pancake
0939198515 Use pj in rasm2.c and add pj_f for float 2019-02-04 16:40:57 +01:00
pancake
0daae3d9af Remove R_ASM_BUFSIZE, all buffers are now dynamic ##asm 2019-02-04 00:23:40 +01:00
pancake
00fb2f4607 Remove global variables in rasm2.c ##refactoring 2019-02-04 00:22:49 +01:00
Riccardo Schirone
e5b4d9294c Use RSpaces in RFlag ##refactor 2019-02-03 09:06:45 -06:00
David CARLIER
5d698c76ae Display file hashes into rabin via new mode ##bin 2019-02-01 17:11:31 -06:00
Deepak Chethan
f087bcfbb0 Removed duplicated -q flag in ragg2's usage message (#12964) 2019-01-31 10:55:17 -06:00
Maijin
f9d4ab6f65
Add Certificates in rabin2 ##enhancement (#12900) 2019-01-24 17:22:53 +01:00
David CARLIER
3cff12a7c0 Add iF to show file hash and related refactoring ##bin 2019-01-24 17:34:00 +08:00
Khairul Azhar Kasmiran
01d5dfe306 Fix rafind2 -S for UTF8 chars > U+00ff (#12866)
* Fix rafind2 -S for UTF8 chars > U+00ff

* Use '< 1' instead of '== 0'

* Remove unnecessary else

* Add a 0
2019-01-22 09:43:10 +01:00
Maijin
8f94d413cd Standardize version using blob_version ##refactor 2019-01-12 22:22:43 +01:00
Maijin
c45e3d4123
Change eprintf to printf in rarun2
Change eprintf to printf in rarun2
2019-01-12 12:29:39 +01:00
David CARLIER
de40266908 Add basic auth to the webserver ##sync 2019-01-10 10:51:51 +01:00
radare
d1d9404907
Implement /s, /s* to search for sections depending on entropy ##search 2019-01-03 15:22:26 +01:00
David CARLIER
2eb706029c Few code/cleanups mem leaks potential (#12591) 2018-12-31 00:21:47 +01:00
dav1901
d05a119081 Fix few minor leaks (#12584) 2018-12-30 01:37:14 +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
r4dix10
ad4013932d Issue #10780 -o for octal string to character (#12561) 2018-12-25 23:24:41 +01:00
dav1901
303a57bb85 Minor code cleanups/fixes (#12519) 2018-12-20 11:50:29 +01:00
iamahuman
a54dbe914b Support r2core.js for Emscripten >=v1.37.24 (#12502)
* Support r2core.js for Emscripten >=v1.37.24

cwrap needs to be exported explicitly via EXTRA_EXPORTED_RUNTIME_METHODS
+ allocate larger memory, allow for growth and no aborting malloc

* wasm_asm was wrongly also included in anal.wasm

This causes link errors where duplicate symbols aren't allowed.

* supply wasm plugin to suppress meta arch warning

r2 core initializes itself for the current architecture until one is
explicitly specified (e.g. loading a binary).  Since asm.wasm and
arch.wasm isn't supplied by default, r2 when built for WebAssembly
emits some ugly warnings when loading.  Besides, those modules
(incl. bin.wasm) aren't that large.

* r2core: Make it possible to know when init is done
2018-12-17 11:55:44 +01:00
radare
7060103292
Improve RBuffer api, start to refactor rbin to use more rbuf ##bin (#12495)
- Added a new rule in the DEVELOPERS.md file
2018-12-17 11:54:46 +01:00
dav1901
ede39f120c Fix few build compiler warnings (#12490) 2018-12-16 14:54:40 +01:00
dav1901
5b644dcb74 Minor cleanups/fixes (#12478) 2018-12-14 00:17:50 +01:00
dav1901
97b94b3f94 Fix more clang warnings (#12458) 2018-12-12 12:22:36 +01:00
David CARLIER
384fe0f903 Silencing/fixing clang warnings. (#12430) 2018-12-10 00:04:21 +01:00
pancake
64f2e25c3a Fix #12405 - Handle ^C in radiff2 -x 2018-12-05 12:41:44 +01:00
dav1901
ab17935659 Fix clang warnings (#12413) 2018-12-05 12:35:37 +01:00
pancake
0cbd616e3b Fix posix shell regrssion in r2pm -s 2018-12-05 12:26:00 +01:00
radare
a3d181a8a0
Fixes spotted by clang-analyzer (#12391) 2018-12-04 10:45:46 +01:00
David CARLIER
138ca20e27 Couple of mem leak fixes. (#12355) 2018-11-29 17:04:24 +01:00
David CARLIER
d5a42c5c0c Fix use after free in radare2. (#12332)
We need the path a little bit longer.
2018-11-26 22:13:32 +01:00
dav1901
a6b44e03fe Fix warnings (#12309) 2018-11-25 01:46:57 +01:00
Riccardo Schirone
300844fa51 Introduce RBinArchOptions to avoid creating fake RBinFile/Objects ##bin 2018-11-22 15:14:37 +01:00
David CARLIER
3d830a3832 Couple of leak fixes 2018-11-15 16:34:11 +01:00
Riccardo Schirone
79edcb32f5
Make sure only one RBinObject is created for each RBinFile (#12169) 2018-11-15 11:44:46 +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
Christopher Hewitt
451c76c71d Open radare2 project after loading plugins and keep the -e flags ##projects 2018-11-14 22:31:02 +01:00
pancake
701ecb2835 More include fixes 2018-11-14 13:12:34 +01:00
Artem Zinenko
4a2bc97a35 Fix #11918 - Moved r_print.h into r_util/r_print.h 2018-11-14 10:54:22 +01:00
Riccardo Schirone
f77ecfb357 Upgrade SDB and use the new HtPP, HtUP, HtUU ##refactoring
* sdb-sync: update to commit ea05ca8808605daa683a2b35f143e24c3a70f0c9
2018-11-14 10:47:28 +01:00
Riccardo Schirone
90058945d2 Remove "referenced" from RBinObject and remove get_object ##refactoring 2018-11-13 13:05:18 +01:00
Paweł Łukasik
22ff13e069 Add dbg.verbose variable to show more info when debugging ##debug 2018-11-13 02:10:21 +01:00
Riccardo Schirone
08e5b4aaad Refactoring RBin.open/close and RBinOptions ##bin
* r_bin_close should be r_bin_file_close
* moved bin/open.c into bin.c
* set BinFile id in r_bin_load_io
* use r_bin_open_io instead of r_bin_load_io
* also prefer RBinOptions instead of multiple arguments
* rename r_bin_load to r_bin_open and use RBinOptions
2018-11-07 17:22:41 +01:00