Commit Graph

3467 Commits

Author SHA1 Message Date
pancake
9d657a1472 Implement {ctz|clz}{32|64} RNum ##api 2022-12-19 00:25:06 +01:00
pancake
4a8f807f72 Add ve command to set fg/bg colors for current panel ##panels 2022-12-18 22:34:21 +01:00
Ole André Vadla Ravnås
d8ceecbaa2 Fix the XML parser ##util
The R_XML_IS_*() macros assume that `ch` has more than 8 bits, so they
can do clever subtraction and only perform a single comparison.

While we could add casts to those macros, the 0..255 clamping logic
also seems to assume there being more than 8 bits.

So these things considered it seems to make the most sense to do what
the original yxml code does, and use `unsigned`. It is also consistent
with r_xml_refend().
2022-12-15 18:46:32 +01:00
pancake
6d5b1a4dbe Add requirejs, simplify compilation and add js_ prefix to all the c files ##lang 2022-12-13 09:46:51 +01:00
pancake
49de7b1064 Add r_file_is_newer API 2022-12-13 09:46:51 +01:00
pancake
cff7216df7 New RPrint.spinBar() API used from scr.demo for now ##print 2022-12-11 05:11:30 +01:00
pancake
e04ca11b98 Fix pcc trifids confussion issue ##print 2022-12-11 04:26:17 +01:00
pancake
b8e6b52aac Also replace __UNIX__ with R2__UNIX__ 2022-12-10 20:32:10 +01:00
pancake
97a6439055 Do the same for __WINDOWS__ -> R2__WINDOWS__ 2022-12-10 20:32:10 +01:00
pancake
d0c220238d
Add RAnalOp.weakbytes() and move more analop apis to arch ##arch 2022-12-09 18:42:56 +01:00
pancake
46cfae097e Remove one global in pd and reorganize other globals in disasm.c 2022-12-08 00:03:56 +01:00
pancake
560d5efced
Update to the latest sdb (2.0.0)
* Experiments to integrate the custom heap into r2 will be based on the sdb implementation
2022-12-07 19:08:21 +01:00
pancake
1a0b6a9abe
Kill RAsmOp, we can reuse RAnalOp in here ##arch 2022-12-07 14:30:22 +01:00
pancake
693d235b09 Fix #21080 - Add cfg.codevar to change the buffer varname from pc ##print 2022-12-01 17:49:15 +01:00
pancake
7ef58beabf Use r_hex_bin2strdup instead of copypasta in util.js2hex 2022-12-01 13:36:20 +01:00
pancake
05947def03
Move the preincrement and void arg from tests to lint.sh ##syntax
* The regex was not correct, so it was missing a lot of cases
2022-11-30 17:13:32 +01:00
pancake
8c8a06cfd7 Improve x86.nz assembler parsing and other bugs in rnum ##arch
* Disable all the gas tests, will be re-enabled with arch.any.as
2022-11-30 15:43:54 +01:00
pancake
53b28aecab Better handle of RNum errors for egg and arch.x86.nz ##arch 2022-11-30 15:43:54 +01:00
Sylvain Pelissier
0d8afb5a33
ASN.1 and x509: correct OCTET_STRING and Public key info parsing ##print
Update x509
2022-11-26 23:31:13 +01:00
pancake
98f53e34ad Fixes for the line editor using live save/load with new RFile apis ##shell 2022-11-25 11:09:12 +01:00
pancake
8cebdb5f20 Fix rasm2 -LLL using the new multi-bits macros ##arch 2022-11-22 18:38:55 +01:00
Sylvain Pelissier
4bd482f4c9
Add ASN1 Algorithm Identifiers for Edwards curves ##print 2022-11-22 11:00:14 +01:00
pancake
60e2d53b2c
Fix char auto-comment in cmp instructions ##disasm 2022-11-22 00:51:13 +01:00
Sylvain Pelissier
f215ff2a84
Fix #20993 - Correct ASN.1 BIT_STRING parsing ##print 2022-11-21 23:46:36 +01:00
pancake
9a8f7413e4
Deprecate more unused fields from RAsmPlugin ##asm 2022-11-21 12:04:46 +01:00
pancake
a79add6dff
Update sdb to remove double include paths ##build
* Updated pkg-config paths
2022-11-19 01:05:18 +01:00
pancake
b05abf9578 Implement pcn command to print bytes as space separated numbers ##print 2022-11-19 00:14:43 +01:00
RHL120
e8b41fa5d5 Fix some problems with the rvc-refactor pr
* Surpress the output of git init
 rationale: rvc init does not output anything so why should git?
* Include r_main.h in ravc2.c
* Fix rvc open and init
* Fix the linter issues
* Remove the no_inline attribute from rvc_repo_type
2022-11-16 11:35:39 +01:00
pancake
b2ff7de0f0 Initial refactoring of the version control api ##rvc 2022-11-16 11:35:39 +01:00
pancake
e50d5d3e2d Fix #21020 - fix json format for rabin2 -jM when no main is found ##bin 2022-11-14 22:20:43 +01:00
pancake
1e23b9e04b
Add support for the swatch dot-beat internet time ##print
* Available via `date -b`
* As well as another date format via `ptb`
2022-11-14 12:01:29 +01:00
pancake
bc25b92a28 Fix some memory leaks spotted by coverity 2022-11-11 19:19:24 +01:00
pancake
ce3c4f16cc
Parse the PT_DYNAMIC elf section for the preinit pointers ##bin
* cache section parsing in macho and elf
* Add RList.clone() api
2022-11-11 03:04:46 +01:00
pancake
1a40fef85c Fix rvector assert when indexing empty ones ##r2r
* Crashing when passing corrupted tests to r2r
2022-11-10 15:00:53 +01:00
MewtR
580bbeeaf2
Quote commit message to avoid git error when saving project ##projects 2022-11-09 19:26:37 +01:00
pancake
7652642373
Deprecate r_str_dup() - related to #20959 ##api 2022-11-07 17:31:30 +01:00
pancake
e9b710249f
Rename RVector.len to RVector.length for consistency ##api 2022-11-06 19:48:53 +01:00
Lazula
e661a024e2
Fix leaks in pdc ##leaks
* Fix duplicate pj creation
* Free codestr when json is not enabled
* Add and use r_type_enum_free
* Remove const modifier from RTypeEnum members
* Remove doubled var2 free
* Add null check to r_type_enum_free
2022-11-06 17:24:56 +01:00
pancake
5336a6b788 Remove the unnecessary RThread.CpuAffinity() ##api 2022-11-03 21:13:52 +01:00
pancake
e4c05099f5 Workaround for "too large buffer" in formats ##print 2022-11-03 12:26:02 +01:00
pancake
ea52438cf7 Fix double free in rvc 2022-11-03 12:05:02 +01:00
pancake
770b4956cd
Improve the outpuf of pdc by trimming the addresses of inline nops and colorize numbers ##decompiler
* Honor scr.color=0 in pdc output
2022-11-03 12:00:47 +01:00
pancake
cb08a6d6ff px* is an alias for pc* ##print 2022-11-02 22:03:45 +01:00
pancake
dab6e8fb77 Fix #20827 - Show srcs/dsts in aoj ##analysis 2022-11-02 05:16:07 +01:00
pancake
35f3ef700d Implement pFoj command ##print 2022-11-01 22:28:09 +01:00
pancake
95c7e48808 Implement pFaj for asn1 json decoding ##print 2022-11-01 22:10:35 +01:00
pancake
ee6329ca17 Initial refactoring/cleanup of ASN1 parser api ##print 2022-11-01 22:10:35 +01:00
pancake
0f2952ea08 Fix crash in the swift metadata parser spotted by coverity ##scan 2022-10-28 15:13:07 +02:00
pancake
5ba64a4573 Fix last leaks spotted by coverity 2022-10-28 14:52:57 +02:00
pancake
becacb0563
Fix static builds 2022-10-27 17:35:29 +02:00