Commit Graph

183 Commits

Author SHA1 Message Date
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
radare
307fb50c24
Fix a segfault in libmagic when error string > 4096 (#16050) 2020-02-25 15:55:00 +01:00
Riccardo Schirone
982be50499 Make it possible to use sysmagic again (#15658) 2019-12-16 23:24:29 +01:00
Anton Kochkov
a43cc2664d
Fix AppVeyor (#15623) 2019-12-13 04:58:16 -06:00
pancake
49e523937e Refix magic's bgets() 2019-12-12 18:11:52 +01:00
pancake
e7ae25fbfb Fix another infite loop in RMagic.loadBuffer() 2019-12-12 18:04:12 +01:00
pancake
8a8a28e4cf Fix bread in RMagic.loadBuffer() 2019-12-12 17:52:50 +01:00
radare
f680995474
Introduce the r_magic_load_buffer() api and boolify a bit ##search (#15617) 2019-12-12 17:12:33 +01:00
GustavoLCR
e43c9e7caf Fix some warnings (#15549) 2019-12-08 12:49:58 +01:00
pancake
b7c8f49744 Add protobuf magic 2019-07-26 05:30:21 +02:00
lzutao
24b5c6cb75 Fix warning when printing level of ">" (#14430)
* Strip trailing whitespaces
* Fix warning -Wstring-plus-int on cont_level
* Remove unused var
2019-06-26 12:09:59 +02:00
Amith Venugopal
4b29de061c End of archive detection in rafind2 -m ##search 2019-05-10 13:17:57 +02:00
Eduardo Novella
e9fe648bcd Android magic numbers until Android 9.x ##search 2019-04-27 17:47:11 +02:00
radare
e04f31a313
Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
Riccardo Schirone
afae8b6e34
Prerelease travis release (#13189)
* Add additional tests for release/prereleases
* Test different plugins configurations
* Add some libraries to docker image
* Disable SYS_CAPSTONE for now because there is only 3.0.5
* Fix html magic file to respect libmagic's format too

< can be used with string so it should be escaped if we want to match
the exact string "<html>"

* Use plugin License when printing rasm2 plugins in JSON format
* Build with system capstone, but do not run tests because they would fail
* Fix tiny plugins file to use xtr_fatmach0 instead of just fatmach0
* Use clang to compile with ASAN
* Use b_lundef=false
* Just test if different plugins configuration build, no r2r
* Use sys openssl as well
2019-02-28 16:58:09 +01:00
pancake
91496b9e10 Fix undefined behaviour in signed int with 24 bit shift in softmagic.c 2019-01-13 22:39:09 +01:00
lzutao
1365948cee Do not use reversed keyword of meson ##build
`files` is a reversed keyword in meson. Try to avoid using it.
2019-01-10 14:15:50 +01:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
lzutao
9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
dav1901
f24556c189 Fix few clang-analyzer warnings (#12548) 2018-12-24 01:18:12 +01:00
pancake
077d01b006 Add magic headers for GPG symmetric crypto ##magic 2018-12-14 11:54:53 +01:00
dav1901
b88806f65f Fix more clang-analyzer warnings (#12424) 2018-12-06 16:55:09 +01:00
dav1901
cdaa507e15 Fix more clangs (#12399) 2018-12-04 16:09:18 +01:00
David CARLIER
2308897b3a Further meson warning build fixes. (#12290)
While here attempt fixing #12278 old version of file/libmagic.
2018-11-23 16:21:11 +08:00