Sylvain Pelissier
7a4c50b406
Update flash magic, reduce false positive and add a test
2022-09-16 11:17:13 +02:00
pancake
007809f8dd
Boolify and rename some methods and fields from RFS ##api
...
* fs plugins now can hold an .author field
* API breaks for simplicity
2022-09-14 23:41:12 +02:00
Axel Iota
d3becf1f5a
Superseed #20447 - remove some magic globals ##search
2022-09-14 18:49:24 +02:00
pancake
62d565e143
Fix a few GCC 12 warnings from #20087
2022-09-07 11:58:28 +02:00
pancake
b6e7292019
Enable linting for trailing tabs ##lint
2022-08-22 23:25:40 +02:00
pancake
55d9d55787
Linting for 'cmp (' and asan in Cf
2022-08-20 12:35:11 +02:00
pancake
7a35f03471
More source spacing linting
2022-08-18 14:37:29 +02:00
pancake
52a22ab995
Add lint for \tfree(
2022-08-18 10:27:06 +02:00
pancake
8c66266e99
Lint for trailing spaces
2022-08-15 18:21:18 +02:00
pancake
ddf483893e
Test and benchmark --with-sysmagic in the CI ##search
...
* Improve output of search.verbose
* Remove conflictive magic signature
2022-08-07 16:24:08 +02:00
Axel Iota
0f81b08bb9
Remove unused daylight logic in magic/mdump ##refactor
2022-07-20 13:24:46 +02:00
Axel Iota
fe20a5413b
Remove optyp global variable for magic ##refactor
2022-07-20 01:13:25 +02:00
Axel Iota
9684cb6d1f
Remove time_t now global variable for magic ##globals
2022-07-19 18:48:56 +02:00
pancake
d329b54ea6
mbr magic is not good for deltified matches ##search
2022-07-14 18:08:16 +02:00
pancake
6539f9f575
Remove noisy mail.news magic file ##search
2022-07-14 18:06:56 +02:00
pancake
60b68b694f
Improve little and big endian LZMA header magic matching ##search
2022-07-12 14:00:23 +02:00
pancake
e03d58986f
Add RSA/DSA key magic ##magic
2022-07-12 13:03:06 +02:00
pancake
9f12bfd0a8
Get rid of some globals and tls-ify others
2022-07-03 10:01:58 +02:00
pancake
d19f21b50a
Remove newline in date and pt. output ##shell
2022-06-03 20:52:46 +02:00
pancake
d8c83947ee
Add compiled yara rules magic
2022-05-23 20:02:37 +02:00
pancake
f46c4e793f
Move more local static into the thread-local-storage ( #20134 )
2022-05-19 12:41:26 +02:00
Elaine Gibson
4b22fc55a8
Unconditionally compile r_magic_from_ebcdic
2022-05-10 11:43:35 +02:00
pancake
5a9e0a19ba
Add bin.s390 to meson build and fix linkage with RMagic
...
* Exposes from_ebcdic() api, but must be moved to RUtil maybe
2022-05-09 08:20:01 +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
4ba0af5d1d
Fix meson -Dblob=true builds for static ##windows
2022-03-16 00:48:50 +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
pancake
4bed905d8a
Fix msvc warnings ( #19827 )
2022-03-15 19:27:34 +01:00
Sergi Àlvarez i Capilla
aef278ee9c
Make -Dblob=true statically link all r2 libraries ##build
2022-03-02 11:30:28 +01:00
pancake
b30a4ea80b
Remove all the uses of %z as its not supported on Windows
2022-02-01 11:07:46 +01:00
pancake
917527306f
Address latest covs and remove some %zu format warnings ( #19647 )
2022-02-01 08:19:38 +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
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
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
pancake
0c85bffe2f
More mingw fixes ( #19260 )
2021-10-19 12:06:46 +02:00
pancake
93f6b4cd3b
Initial work towards supporting mingw32/64 again ##build
2021-10-18 23:58:16 +02:00
pancake
4fba588f0f
Disable networking and libmagic widechar support for SerenityOS for now
2021-07-07 19:19:10 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build
2021-06-20 17:14:43 +02:00
pancake
bcb8333e6f
Improve output for make -s and fix magic install with symlinks issue ( #18781 )
2021-05-30 23:46:58 +02:00
meme
fcf4d8dcad
Add size parameter to r_magic_load_buffer ##util ( #18760 )
...
It is still UTF-8, and thus not valid to have a NULL inside of the the
file, but sometimes inputs are not NULL-terminated
2021-05-27 16:27:04 +02:00
pancake
ae3ff63bab
Massage RRegex to fix codingstyle and a null deref. ##regexp
2021-01-08 04:42:07 +01:00
Anton Kochkov
5da1b3b076
Fix some warnings
2020-11-16 18:56:21 +08:00
Liumeo
d9000c0214
Fix ctime/asctime and refactor r_asctime_r ##refactor ( #17911 )
2020-11-12 12:25:33 +08:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local ( #17639 )
2020-09-15 09:16:14 +02:00
pancake
8b33d764a7
Fix #3929 - Enable LTO in sys/static.sh ##build ( #17141 )
...
* Fix #3929 - Enable LTO in sys/static.sh
* Update Ubuntu to 20.04 for static build
* Use `gcc-ar` when needed
* Do not use "c" option for ${AR}
* Use `$$AR` instead of `$AR`
* Aim to fix `-dynamiclib` issue outside darwin
* Run tests for static LTO build
Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-08-13 13:55:39 +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
Eduardo Novella
8ebc8f265e
Add Android boot image magic ( #17193 )
2020-07-03 18:51: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
radare
3f77b9a76b
Avoid duplicated module filenames to fix static.sh ##build ( #16403 )
2020-04-02 14:30:27 +02:00
radare
6379317f57
Add LZMA-BE magic signatures ##search
2020-03-31 21:17:02 +02:00
pancake
5b8366441d
Fix last covs
2020-02-28 17:38:51 +01:00