pancake
b757488cf8
More linting rules
2022-10-09 01:04:13 +02:00
Sylvain Pelissier
9eb97ec14b
Separate SM4 algorithm from plugin ##crypto
2022-09-15 16:28:38 +02:00
Sylvain Pelissier
4a01f475f3
/ca update help message and add block cipher parameter
...
/ca initial SM4 key search implementation
Add SM4 key search test
Refactor cmd_search.c to have common code for key search.
2022-09-15 16:28:38 +02:00
Alex Bender
12ea8be2ed
Change the way TODO messages are printed from eprintf to R_LOG_TODO
2022-09-15 04:07:29 +02:00
pancake
0c26327f9d
Remove all global variables in rahash2 ##tools
2022-09-10 11:11:43 +02:00
pancake
7a35f03471
More source spacing linting
2022-08-18 14:37:29 +02:00
pancake
a538b2b700
Add =0 and =1 lintings
2022-08-18 13:58:40 +02:00
pancake
52a22ab995
Add lint for \tfree(
2022-08-18 10:27:06 +02:00
pancake
41cf0bcf39
Add the 'i<' lint
2022-08-18 10:27:00 +02:00
Richard Patel
b78855c38d
Refactor a few eprintf 'Cannot …' to R_LOG_ERROR
2022-08-01 16:46:46 +02:00
pancake
fec0a64b41
Fix #20439 - rafind2 -V search for values like in /v ##tools
2022-07-31 19:56:39 +02:00
Richard Patel
363df75c06
Replace some instances of eprintf with R_LOG_
2022-06-28 02:49:42 +02:00
Sylvain Pelissier
5718360c03
Improve /ca speed and add JSON output for crypto function
2022-04-25 14:19:54 +02:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
...
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
...
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
Lazula
d507bda91c
Remove R_EMPTY and R_EMPTY2
2022-03-13 11:26:10 +01:00
Sergi Àlvarez i Capilla
aef278ee9c
Make -Dblob=true statically link all r2 libraries ##build
2022-03-02 11:30:28 +01:00
Dennis Goodlett
2a117d5f4f
Add Rabin Karp algorythm to ##search
2021-12-30 10:30:30 +01:00
Dennis Goodlett
d76bb693f2
Add r_search_maps to ##search
2021-12-30 10:30:13 +01:00
Dennis Goodlett
f8f9599154
Move /e to new search API ##search
...
* Move global var to struct
* Add r_cons_is_breaked
* Use RConsBind
2021-12-23 00:36:51 +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
pancake
575c26f329
Fix some format string warnings in the mingw ci job
2021-12-21 00:31:28 +01:00
Dennis Goodlett
df77191f9d
Fix bug in regex searching ##search
2021-12-19 16:56:09 +01:00
Dennis Goodlett
847f567be7
Add longest field to RSearch ##search
2021-12-16 12:47:23 +01:00
Dennis Goodlett
df32fd1725
Add r_search_upate_read API ##search
2021-12-16 12:45:48 +01:00
Sergi Àlvarez i Capilla
f50678328b
Address dead code in widechar search spotted by coverity
2021-12-13 23:43:29 +01:00
Dennis Goodlett
25fa4328db
Cleanup public API for ##search ( #19477 )
...
* Remove unsed API
* Remove r_search_update_i
* Implementation of r_search_update_i was just returning r_search_update.
* Remove unused r_search_xrefs_update
* Remove r_search_magic_update from public API
* Move update functions out of public API
* Remove unused r_search_bmh API
* Rename search update functions
* Add R_IPI to internal functions
2021-12-12 11:46:46 +01:00
Dennis Goodlett
56c35e0015
Update defines how data is free'd ##search
2021-12-06 12:06:25 +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
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
pancake
9046aa2ebf
find | mv s/-/_/g ( #19302 )
2021-10-24 23:46:02 +02:00
pancake
d6624b4257
Add /cg command to search for GPG artifacts ##search
2021-07-30 01:29:01 +02:00
murphy
d95406b82e
Fix 1445924 Resource leak
2021-04-13 20:09:33 +02:00
pancake
a7c08c15ce
Don't scream out WARNINGs, capitalizing it is enough
2021-03-19 11:02:54 +01:00
pancake
80d81c553b
Add /cu[qj*] and r_search_find_uds API ##search
2021-02-01 12:42:03 +01:00
Kamil Rytarowski
9d761f6a88
Avoid array subscript type issues ( #18295 )
...
Cast char to unsigned char for standard reasons and security purposes.
Fixes build issues on NetBSD.
2021-01-26 13:08:58 +01:00
Alexis Ehret
5b1b0c0da6
Fix dead increments
2021-01-25 00:34:58 +01:00
pancake
ae3ff63bab
Massage RRegex to fix codingstyle and a null deref. ##regexp
2021-01-08 04:42:07 +01:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local ( #17639 )
2020-09-15 09:16:14 +02:00
Sylvain Pelissier
2d53f7083b
Update crypto key search to find keys between blocks ##search ( #17323 )
2020-08-11 12:31:55 +08:00
pancake
dd8120a129
Remove unused old_xrefs.c ( #17307 )
...
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-20 14:30:11 +08:00
Riccardo Schirone
594b940b7c
Fixes some of the issues in Travis ( #17267 )
...
* Do not check with r_return_ if the convention is present
Let's just assume the NULL default in such a case, so that architectures
for which we don't have a defined calling convention can still be
processed somehow by the analysis code. It won't be precise, but it's
better than nothing.
Also add a warning message so users are aware when the calling
convention is not defined.
* Fix oob-read when # is at the end of the cmd string
* Do not set TMPDIR when the new value is the empty string
When TMPDIR is set to empty value, clang+ld behaves in weird ways and
you cannot compile files from within the r2 shell (e.g. when using #!c
or #!cpipe)
* Use meson and add -lasan to pkgconfig files when sanitizer are used
2020-07-16 20:47:30 +08:00
Sylvain Pelissier
b027858c95
Correct output value for AES and private key search ( #17200 )
2020-07-03 21:03:35 +02:00
pancake
160fc95e66
Use (void) instead of () in function signatures ( #17026 ) ##refactoring
...
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
Anton Kochkov
ffe743ef39
Fix #4056 - rename DEPS to R2DEPS ##build ( #17020 )
...
* Rename DEPS to R2DEPS
* Cleanup of sys/build.sh
2020-06-12 10:49:28 +08:00
Sylvain Pelissier
941d03a6aa
Add one more word in AES key search and merge Sbox ( #16811 )
2020-05-12 11:58:26 +08:00
radare
3f77b9a76b
Avoid duplicated module filenames to fix static.sh ##build ( #16403 )
2020-04-02 14:30:27 +02:00
Sylvain Pelissier
ef6e146326
Display correct lengths for cryptography search commands ( #16262 ) ##search
2020-03-20 12:13:34 +01:00
Khairul Kasmiran
78e21373be
Revert "ONE_STREAM_HACK & scr.onestream: Force expected ONE_STREAM order if necessary ( #15535 )"
...
This reverts commit 39b40cdedd
.
2020-02-17 00:00:46 +01:00
Sylvain Pelissier
7de2ca21b5
Add elliptic curve private key search in /cr command ( #15761 ) ##search
2020-01-07 22:01:16 +01:00