Commit Graph

30002 Commits

Author SHA1 Message Date
pancake b8d6a1d60d Add http:// in counters.sh 2023-03-22 04:03:31 +01:00
pancake e8ac805d4d
Fix memcpy bug in the new cache ##io 2023-03-22 03:59:36 +01:00
pancake 6bcdd19676 Better markdown for test/README 2023-03-22 00:11:21 +01:00
echel0n 508a630704 fix segfault when bin->symbols is NULL #21503 2023-03-21 19:08:00 +01:00
pancake ef8ec63747
Blind ELF fixes ##bin 2023-03-21 14:44:36 +01:00
pancake 66d67346de Add a line for fixing directory permissions in INSTALL.md 2023-03-21 12:37:08 +01:00
pancake 4ca2579454 getcpu is reserved by linux's sched.h ##build 2023-03-21 12:34:26 +01:00
pancake d6e7c1e162 Add -V command as an alias for ?V ##shell 2023-03-20 10:55:21 +01:00
pancake 8af31a5d8d Move the esil #! r2 command as an op instead of parse ##esil 2023-03-20 09:34:38 +01:00
pancake 4e8b0986e2 ZeroPad addresses in iSq and iSSq ##bin 2023-03-20 09:04:26 +01:00
Yuvraj Saxena 9ad89fd980
Fix tb instruction for ARM assembler ##asm
Current code unconditionally drops last 2 bits without checking if those 2 bits are set or cleared,
if ignored these 2 bits are eventually lost and not encoded in machine instruction
and it's dangerous to assume destination supplied is valid to correct this I implemented a check.
Last 2 bits are discarded when final machine instruction is generated
and later in the decode phase this 14 bit immediate value (destination) is shifted left 2 bit positions,
and later sign extended to 64 bits that means we can actually encode a number with 16 bits but current code encodes only upto 14 bits. Thus, wasting 2 bits.
Also, Current code unconditionally parses last 5 bits from immediate 1, which is nothing but bit number to be tested in the register. Therefore, it must be within range 0-31 if 32 bit register is used, range must 0-63 if 64 bit register is used.
Also, in the case of 64 bit register only last 5 bits are encoded because it's later concatenated with MSB hence rendering a 6 bit number that can be used to denote bit positions between 0-63. To tackle this a check for this is implemented.
At last testcases are added to demonstrate these checks.
2023-03-19 13:08:25 +01:00
Mewt R d28be65647 meson support for smallz4, relates to #19849 ##build 2023-03-18 19:06:34 +01:00
pancake 1286246f25
Migrate arm.v35 ##arch 2023-03-17 08:23:37 +01:00
pancake 33c6303319 Minor fix in tagged pointer macro 2023-03-16 20:45:29 +01:00
pancake 8527abff55 Fix links in the readme 2023-03-15 15:35:32 +01:00
pancake a671b5492b After release version bump 2023-03-15 15:32:44 +01:00
MewtR b06cfb30d8
Use Smallz4 instead of liblz4 which is optional ##build
* Initial smallz4 support, related to #19849
* Patch smallz4 to return -1 on error (as opposed to just exit)
* Add new function 'unlz4Block_userPtr' that can decompress an lz4 block
* New '--with-smallz4' flag to compile and use smallz4 instead of lz4
* Reuse the new unlz4Block_userPtr function to remove duplicate code from unlz4_userPtr in smallz4
* smallz4: remove patch, format small4cat.c properly
2023-03-15 15:29:54 +01:00
pancake 09169f97f7 Move the tarball distribution code into dist/tarball ##ci 2023-03-15 12:03:21 +01:00
pancake b340dea630 Fix some warnings on windows and unbreak few tests 2023-03-15 12:03:06 +01:00
pancake ab809417aa Release 5.8.4 - codename: smouldering 2023-03-14 22:27:55 +01:00
pancake b7ec6fb366 Support R2_PREFIX env var to override compile-time PREFIX ##core
* Supports overriding system paths at startup time
* Makes happy snaps and other sandboxed or randomized execution environments
2023-03-14 21:30:38 +01:00
pancake 6bbe2e22fa Use R_LOG instead of eprintf (Usage in libr/util) 2023-03-14 20:42:02 +01:00
pancake 83603ac9b8 Unbreak 7 fixed tests 2023-03-14 20:42:02 +01:00
Pau Rodriguez-Estivill 3d033190ae Remove snapcraft files from dist 2023-03-14 20:37:29 +01:00
Pau Rodriguez-Estivill e1e8cdf16a Update snap documentation 2023-03-14 20:37:29 +01:00
pancake cf004aff20
Add --with-new-io-cache configure and meson flags ##build
* That's an ABI breaking change optimizing io.cache=1
2023-03-14 15:29:53 +01:00
pancake 1de7776d2f Add test for bin.cache on macho relocs 2023-03-14 10:36:58 +01:00
pancake 5ce18c6b72 Minor stylish fixes in io_cache 2023-03-13 23:57:44 +01:00
pancake 4289a9fff7 Fix help message when write fails (omp -> omf) ##shell
* Imho omf should be renamed to omp
* And we must find a new home for omp
2023-03-13 23:35:38 +01:00
pancake 5e13476c01
Report errors when failing to patch relocs in the internal buffer ##bin 2023-03-13 23:14:11 +01:00
pancake b8bd90585f Fix spaces in cr16 tests 2023-03-13 17:42:32 +01:00
pancake 2b2b3ed04d Fix #21380 - Refer to "? in /R for escaping chars ##shell 2023-03-13 17:40:58 +01:00
pancake 90601b14f7 Improve the pseudo-decompilation output for !x86 and inlined gotos ##print 2023-03-13 17:27:56 +01:00
pancake f4539cc9e1 Dont try to resolve strings on call destinations ##disasm 2023-03-13 17:26:46 +01:00
Murphy d589162571
Migrate cr16 ##arch 2023-03-13 17:25:43 +01:00
pancake 26aa0212a0
Initial implementation of the io-write-cache command ##io 2023-03-13 14:46:53 +01:00
pancake c6c5d1ba17 Implement qword to better display patched relocs in macho ##bin 2023-03-13 13:09:40 +01:00
Murphy 4e43e320cd Migrate cris from anal to ##arch 2023-03-12 20:38:02 +01:00
Lazula b9356ead0e
Update merging style in CONTRIBUTING.md (#21467) 2023-03-12 18:40:28 +01:00
Lazula 86b5d8e4ab
Correctly align r_core_cmd_help_match output in inexact mode ##shell 2023-03-11 07:32:54 +01:00
pancake 5e24a9b2a1 Fix scr.html when using bold attribute in scr.color=1 ##cons 2023-03-10 22:51:41 +01:00
Lazula 7528553d16
Return NULL on miss in r_file_path ##util (#21461)
* Lots of R2_590 guards
2023-03-10 21:56:42 +01:00
pancake 619de0ffa0 Avoid >64 bit shift left on 128bit registers ##esil 2023-03-10 18:32:01 +01:00
pancake dec79e05fe Fix duplicated source lines in CLLf output ##print 2023-03-10 16:53:53 +01:00
pancake 65e1ca2e2a
Abidiff shouldnt check internal structs like the capstone ones ##ci 2023-03-10 16:53:39 +01:00
pancake fec9fb8cb4 Update help message for ""? for ""@"" ##shell 2023-03-10 12:34:46 +01:00
pancake 8d65fc5f4f Disable anal.nopskip on arm binaries 2023-03-10 12:34:46 +01:00
Siguza b04bc4164c
Fix #21451 - Support IDREF in cf_dict parsing ##bin 2023-03-10 10:22:51 +01:00
Lazula 06a8789780
Remove all char* casts in free ##cleanup
* Fix dwarf demangle logic
* dwarf_process.c * type.c * pyc_dis.c * dex.c
* emit_arm.c * qjs_core.c * axml.c * engine.c
* cconfig.c * core.c * asn1_str.c
2023-03-09 18:40:24 +01:00
Lazula 57812e2471
Drastically reduce eUsage counter ##shell
* Get rid of some eprintf
* Use RCoreHelpMessage
* Missing comma in cmd_cmp.c and vmenus.c
* cmd.c * cmd_anal.c * cmd_cmp.c * cmd_debug.c * cmd_eval.c
* cmd_flag.c * cmd_help.c * cmd_debug.c 2 * fixes * cmd_info.c
* cmd_log.c * cmd_meta.c * cmd_mount.c * cmd_open.c * cmd_print.c
* cconfig.c * cmd.c * cmd_anal.c * cmd_search.c * cmd_seek.c
* cmd_write.c * core_a2f.c * core_sixref.c * vmenus.c * yank.c
* Please sys/lint.sh
2023-03-09 16:07:09 +01:00