condret
fdc26071e8
some refactoring of the RThread thing
2024-02-23 18:47:27 +01:00
pancake
03e1a6b097
fix unit
2024-02-16 07:47:47 +01:00
Yiheng Cao
38c8e5ded6
Use the safe r_str_scanf instead of scanf to parse gdb profile ##crash
2024-02-15 10:09:14 +01:00
Armin Weihbold
b6c28b3830
Autodetect libc version and support manual specification ##debug
...
* Improve dmh usability
* Add unit tests for regexpes used
2024-02-14 14:38:40 +01:00
pancake
4fc2daf5e3
Add a broken test for r_str_scanf for my future self
2024-02-14 12:42:18 +01:00
pancake
e394274585
Add test for previous commit
2024-02-13 20:34:58 +01:00
pancake
f368c8ccdb
Add more tests and fix %c in r_str_scanf
2024-02-08 17:38:39 +01:00
pancake
bf78d090c8
Initial implementation of our custom r_str_printf api
2024-02-08 11:16:42 +01:00
pancake
c75ad89e5f
Implement scansets support in RStr.scanf ##util
2024-02-07 19:18:13 +01:00
pancake
64aa644ab5
Implement %p in r_str_scanf and add more tests for it
2024-02-07 10:35:45 +01:00
pancake
098669591c
Initial import of our custom and safe r_str_scanf ##util
...
* %s requires length via %.s
* cant use %*s for backward compat reasons (printf vs scanf inconsistencies)
* support %Lx as a portable ut64 modifier
* add some unit tests
* Implement wide string support
2024-02-06 20:23:30 +01:00
pancake
dca3d5e05c
Fix ub and rename the binstring apis again
2023-12-12 12:47:21 +01:00
pancake
e9af8dd5a7
Fix some local running of unit tests by skipping plugins
2023-12-12 11:00:13 +01:00
pancake
b5456c326d
Fix oob/asan crashes in the binstr apis of the unit tests
2023-12-12 00:07:53 +01:00
pancake
fc8b7c9a6a
Rename the binstr apis and fix units
2023-12-11 09:31:21 +01:00
overmyerD
a26d7fbdcc
Add RPrint.binFromStr and RStr.binstr2bin and RStr.binstr2str ##rax2
...
* Change -B and -b option to use new r_str_str2binstr and functions.
* add test_r_str_binstr2str and test_r_str_str2binstr test
* Change r_str_binstr2str and r_str_str2binstr to take parameters (const ut8* str, size_t len)
* Change r_str_binstr2str and r_str_str2binstr to new API and freed them when done.
* Change test_r_str_binstr2str and test_r_str_str2binstr with new API
2023-12-10 20:22:39 +01:00
Richard Patel
4e6c3fcea5
Fix NULL deref in r_core log handling
...
- Fixes issue https://github.com/radareorg/radare2/issues/22468
- Adds a regression test
2023-12-05 14:34:38 +01:00
condret
8bf7fdf1b6
Assure map boundary sanity on creation ##io
2023-11-17 17:16:32 +00:00
condret
3c1040537b
Add user pointer to r_agraph_new_from_graph for core_agD plugin
2023-08-27 18:47:21 +02:00
pancake
372c40ec73
Rename RStrpool.ansiChop to ansiTrim() ##api
2023-08-17 23:45:29 +02:00
Luc Tielen
95b648f090
Add last function to vec ##util
2023-08-11 15:04:10 +02:00
Luc Tielen
8a2732168e
Fix issue with creating vec of pointer type ##util
...
This was due to the weird position of const in (pointer) types, combined
with macro-expansion. Putting const after the type in the macro
generates the correct code.
2023-08-11 15:04:10 +02:00
pancake
17183dddc8
JSON is not happy with \x## but \u00## works as expected ##util
2023-07-20 17:58:33 +02:00
Luc Tielen
e08aee5f05
Allow append in vec to deep copy ##util
2023-07-20 15:20:46 +02:00
Luc Tielen
ea12b05a2a
Rework vec macros to inline finalizer function ##util
2023-07-20 12:58:14 +02:00
Luc Tielen
1294849c28
Implement small vec optimization ##util
2023-07-20 12:58:14 +02:00
Luc Tielen
6cd0ae6c54
Refactor vec generate macro ##util
2023-07-18 11:59:15 +02:00
Luc Tielen
e9e85a6570
Save a bit of memory in xrefs implementation ##analysis
2023-07-17 19:16:00 +02:00
Luc Tielen
3500cdc523
Add more vector algorithms (partition, uniq, eraseback, ..) ##util
...
- find_if_not
- erase_back
- partition
- uniq
Also reserve now returns a bool indicating success.
2023-07-11 11:55:25 +02:00
Luc Tielen
5bae28e7cc
Add sort function RVec, const correctness ##util
2023-07-07 17:39:28 +02:00
Luc Tielen
df34050a68
Add find_index function to RVec ##util
2023-06-27 18:12:50 +02:00
Luc Tielen
52e0276db5
Update find to take any value type for more general use ##util
2023-06-27 18:12:50 +02:00
Luc Tielen
4079b88e44
Add find function to Vec ##util
2023-06-27 18:12:50 +02:00
pancake
6d16d55c00
Enhance RHex API preconditions and fix asan unit tests
2023-06-21 21:20:10 +02:00
pancake
3d5ca5f23e
Fix msvc warnings in test_vec unit
2023-06-19 12:14:03 +02:00
pancake
1d6ccf8a11
Fix tests
2023-06-15 12:26:49 +02:00
pancake
9a32f3db86
Redesigned IO cache with layers ##io
...
* io.cache.read|write are now true by default
* io.cache-related unit tests disabled for now
2023-06-14 18:26:12 +02:00
Luc Tielen
4f7abb9182
Add new optimized vector implementation ##util
...
* Minor optimization in vec append
* Fix shrink_to_fit when num_elems == 0
* Remove redundant includes
* Use macros for getting start/end iter and capacity
* Add emplace_back and emplace_front functions to vec
2023-06-12 17:11:56 +02:00
pancake
7876fbc71b
Get rid of the unused skyline data structure ##util
2023-06-08 17:51:42 +02:00
Ildar
6d3b1f1657
Cover r_str_tok_r function
2023-04-22 16:05:55 +02:00
pancake
b44f8d3f3c
Branch prediction optimizations (1/3) ##performance
2023-04-18 16:10:16 +02:00
pancake
60f8492f2b
Rename R_CONST to R_TAG and add unit tests for them ##api
2023-04-12 22:37:12 +02:00
pancake
5b41faf4b1
Implement 'aoem' command to show memory refs via emulation ##esil
2023-03-29 11:36:35 +02:00
pancake
ae15cb9b7e
Fix oom in the LE parser ##bin
2023-03-05 11:30:03 +01:00
pancake
f6bc514e00
Test fixes and identify more slow tests
2023-03-05 08:56:33 +01:00
Lazula
22d71f931a
Remove RList.get_top and RList.get_bottom
2023-03-03 10:14:51 +01:00
Apkunpacker
2090ca5c6f
Fix typos in different locations
2023-01-16 18:41:04 +01:00
pancake
b8e6b52aac
Also replace __UNIX__ with R2__UNIX__
2022-12-10 20:32:10 +01:00
pancake
ccb7351b5e
Merge RParse into RAsm ##api
2022-12-03 02:26:41 +01:00
pancake
19a377bbda
Fix and move failing tests, reorder lib build ##arch
2022-11-30 15:43:54 +01:00