3315 Commits

Author SHA1 Message Date
pancake
3b161a860f
Increase read buffers in r2r and strbuf (#19646) 2022-02-01 09:27:34 +01:00
meme
7ebcd4162a Add atomic primitives for Windows ##util 2022-02-01 08:14:58 +01:00
meme
60286162ae Add safe static lock initialization ##util 2022-02-01 08:14:58 +01:00
pancake
50bf4d5918
Simplify meson logic and use ole's PR to fix Windows ##build
* Kudos to @oleavr for reproducing, spotting and fixing the bug!
* Context https://github.com/mesonbuild/meson/pull/9918
2022-01-31 23:54:00 +01:00
pancake
72ffc0271f Fix warnings 2022-01-31 02:26:20 +01:00
pancake
d58e62e74c Fixes for w2019 (#19644) 2022-01-31 01:47:04 +01:00
pancake
7e7fd5835a
Add 'pFB' command to use the new BPLIST parser ##print
* Kudos to https://github.com/libimobiledevice/libplist
* Licensed under LGPL
* Add pj_kraw() api
* Add bplist00 magic and add tests for /m and pFBj
2022-01-30 22:30:10 +01:00
Sergi Àlvarez i Capilla
5c86f69b95 Fix unused variable warning 2022-01-28 15:45:35 +01:00
Sergi Àlvarez i Capilla
4474cbab01 Fix last covs 2022-01-28 15:23:44 +01:00
pancake
ee00ab36bc Make all r2 tools behave properly when called with argc < 2
* No vuln here, just polkit and posix2001 fun
2022-01-27 02:16:12 +01:00
gogo2464
e3e48fef18
Add iso8859_1 ##charset 2022-01-26 08:08:02 +01:00
pancake
3c3bc79ebd Honor flag colors in 'px' hexdump ##print 2022-01-24 00:00:10 +01:00
pancake
242bf08b62 Improve the way color flags are handled ##print 2022-01-23 22:47:04 +01:00
pancake
d3d0e8f3ec Mark all globals (or most of them) as TLS variables ##core 2022-01-21 17:04:56 +01:00
pancake
792c2afe95 Improvements and fixes for the threading APIs ##util 2022-01-21 17:04:56 +01:00
Sergi Àlvarez i Capilla
85173c6b16 Fix last covs 2022-01-21 12:39:08 +01:00
Dennis Goodlett
7db2a30b56
Update r_file_mkstemp to work with sandbox (#19601) 2022-01-19 23:35:13 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Lazula
56018d73c9 Free fmt2 under correct conditions in r_print_format_struct_size() 2022-01-15 16:42:34 +01:00
Lazula
aa10d544b1 Update memory fixes in r_print_format_struct_size() 2022-01-15 01:11:21 +01:00
Lazula
f4262f55f8 Use R_FREE for fmt in r_print_format_struct 2022-01-15 01:11:21 +01:00
Lazula
34db2e86b3 Free fmt in r_print_format_struct() 2022-01-15 01:11:21 +01:00
Lazula
596044a910 Free format in r_print_format_struct_size() 2022-01-15 01:11:21 +01:00
pancake
fba739a1ee
Add ablc, ab-, Fix and optimize in af- and aafs ##analysis
* Add ablc, ab-, Fix and optimize in af- and aafs ##analysis

* delete dangling basic blocks after 'aafs' when using 'af-*'
* add test for aafs and ablc
* queue reanalysis on write, and mark detectwrite tests as broken
* function reanalisis tests in a separate file
2022-01-12 12:07:26 +01:00
Sergi Àlvarez i Capilla
fdc1ba6d6d Rewrite r_list_uniq with a faster algorithm ##core
* Adds _inplace() variant to avoid creating a new list
* Speedups aafs, aflm, pd, aflt and aflj
2022-01-11 23:29:47 +01:00
Sergi Àlvarez i Capilla
3fb7de3e2d Improve pcc output and add a test ##print 2022-01-11 02:59:30 +01:00
Lazula
dc21a2e081 Clean up sp->event in r_spaces_fini() 2022-01-11 01:10:00 +01:00
pancake
6ae845c991
Move asm/wasm into anal, and add new opasm() callback ##abi
* ABI break for all anal plugins
2022-01-09 22:55:34 +01:00
Sergi Àlvarez i Capilla
1eaca080ca Add 'pcc' command to print block as C char*string ##print 2022-01-09 22:33:31 +01:00
pancake
fb0ec6ed00
Use stdint like if there was no yesterday ##refactor
* stdint is needed to build r2, so there's no need to keep using
  those weak basic types anymore, and we can just alias them
2022-01-09 19:48:16 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
Sergi Àlvarez i Capilla
545aefe971 Improve reg detection in asm highlighting + add test ##disasm 2021-12-21 20:08:11 +01:00
pancake
d613664fd0 Fix reg/flag detection in disasm colorization ##disasm 2021-12-21 12:08:10 +01:00
pancake
eb55c15453 Honor jmp/call argument colors by type ##cons 2021-12-21 12:08:10 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
pancake
a3c4bc388b Add prj.sandbox to enable experimental sandboxed project loading ##projects 2021-12-20 23:20:50 +01:00
pancake
b531513e96
Implement fine grained sandbox control ##security 2021-12-20 14:58:51 +01:00
pancake
034cd660e4
Add asm.bytes.opcolor configuration option ##disasm 2021-12-19 17:04:39 +01:00
pancake
2fa1fba5ee Fix system regression 2021-12-17 11:28:03 +01:00
pancake
3aef52cae0 Fix issues in r2pm -i acr and the new compiler checks 2021-12-17 10:26:41 +01:00
pancake
3ad5693518
Initial implementation of r2pm.c ##r2pm 2021-12-16 12:47:40 +01:00
pancake
12c44332a2
Check for subcommands of iz to improve output on invalid input (#19467)
* Minor count fix and r_diff include moved into r_util
2021-12-05 04:43:31 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
Richard Liu
1f123e41e4 Fix infinite loop in r_str_replace ##util
* Add check for empty `key`, since `r_str_replace` does not check for
  empty `key` and will loop indefinitely.
* Add test case for this (occurs with highlight grep)
2021-11-30 11:08:47 +01:00
pancake
17743efd42 Fix #19446 - null derefs in the x509 parser ##crash 2021-11-28 22:18:11 +01:00
pancake
4327d8322f
Bring back the mingw32 builds ##windows
* Massage conflicting function signatures spotted by mingw
* Fix the spp visibility issue
* Enable 32 and 64bit mingw builds in the CI
2021-11-28 22:10:51 +01:00
pancake
3e7c2d3df7 Fix pcV output to print const buffers 2021-11-22 00:36:31 +01:00
pancake
183e360dd1
Winapi all the things (#19427) 2021-11-20 20:22:35 +01:00
condret
932682ea8a Liberate RSpaces from old rbtree api 2021-11-20 01:02:53 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00