Commit Graph

146 Commits

Author SHA1 Message Date
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
dav1901
8e7aea3198 Minor cleanups (#12231) 2018-11-19 22:55:34 +01:00
radare
5f270658c5
New RBin plugin for "symbols" files ##bin 2018-11-19 22:54:58 +01:00
pancake
481ddade5b Add magic signature for LLVM IR bitcode files 2018-11-15 04:43:33 +01:00
dav1901
8b83d03c99 Minor code cleanups free/R_FREE (#12145) 2018-11-13 23:41:28 +01:00
Lowly Worm
80d87b9be4 fix format string called with too few arguments 2018-11-11 16:08:28 -08:00
Lowly Worm
8885dc4fd1 Call to gmtime is potentially dangerous, replace with gmtime_r 2018-11-11 15:53:08 -08:00
pancake
6c7bfd846a Add help in wtf!? and add bitcode magic signature ##magic 2018-11-10 02:44:24 +01:00
pancake
d2c7275155 Add magic signatures for llvm bitcode and xcode symbols 2018-11-08 17:29:43 +01:00
teresy
944aec4512 Remove redundant continue in for loops 2018-11-08 00:33:14 +01:00
Riccardo Schirone
ab4578a546
remove random warnings when compiling (#11767)
* remove random warnings when compiling

* debug_native: provide r_debug_handle_signals on windows
2018-10-08 13:21:50 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Riccardo Schirone
eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +02:00
Paul I
620affc89e Fix some warnings (#11152) 2018-08-20 14:52:02 +08:00
Riccardo Schirone
9a06b35277
meson.build: do not add "r_magic" as Require in pkgconfig if using sys 2018-07-18 15:50:02 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
Anton Kochkov
e3d11b989c Fix Linux build 2018-06-11 11:02:49 +08:00
pancake
c52c7bace3 Fix #10300 - Link issues --with-sysmagic 2018-06-11 03:36:45 +02:00
Paul I
cad927a591 Meson: add rule for tags.r2 (#10215) 2018-05-28 23:25:48 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
Paul I
9c0d682e60 Meson: Invoke python via <python3> module + some little fixes (#9594)
* Meson: Invoke python via <python3> module

* Meson: Added version check

* Meson: Disable git output for capstone cloning command
2018-03-06 08:28:40 +01:00
Paul I
13f7013696 Meson: Added sdb building/installation rules (#9575) 2018-03-05 00:10:28 +01:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
pancake
040dbad8a3 Add mach code signature magic entry 2018-03-01 19:03:20 +01:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
whitequark
0f97fdd228 Fix numerous issues with pkgconfig files.
* Modifications like adding @SSL_CFLAGS@ to .pc.acr files that
    would be overwritten by `make pkgcfg` have been moved to
    Makefiles proper.
  * Missing .pc.acr files for libraries r_egg and r_crypto were
    added to the tree as well as the configure script.
  * Instead of explicitly listing every -lr_* library in every
    .pc file in the Libs: section, r_* libraries are now listed
    in the Requires: section, which ensures that flags get
    transitively propagated. This gets rid of the MAGICSED hack.
2018-01-11 23:09:22 +01:00
Khairul Kasmiran
1db08bb498 Fixed r_magic_version prototype warning 2017-12-31 20:29:09 +08:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
pancake
1926ad859a Fix make symstall with relative paths 2017-10-18 17:53:00 +02:00
Fangrui Song
c1472e6630 Leak fixes (#8060) 2017-07-30 03:57:02 +02:00
pancake
abaac71290 Fix last covs 2017-07-26 18:46:29 +02:00
Anton Kochkov
0e9a5fff34 Fix a few {A,M,UB}SAN complaints 2017-07-26 20:54:52 +08:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
Lowly Worm
192dbad64e fix a few covs for out of bounds reads/writes
from fencepost errors
2017-06-03 01:21:07 -04:00