Anton Yuzhaninov
3514992d2b
Remove unused function
gboolean support was removed in commit 91287bb840
.
пре 5 година
Anton Yuzhaninov
a1eb8af054
Enable clang plugin
Build clang plugin and use it to check rspamd printf-like functions
(rspamd_printf, rspamd_fprintf, rspamd_default_log_function, e.t.c).
пре 5 година
Anton Yuzhaninov
3ec6820a92
Don't use LLVM_CXX_FLAGS/LLVM_C_FLAGS
llvm-config --cxxflags shows CFLAGS used to compile clang. If clang
installed from package and package was build using GCC then it will
contain GCC specific flags. In case of clang installed as RPM packge
-specs= flags also added. There is not point to use them to
compile plugin. For now hardcode flags in clang-plugin/CMakeLists.txt
Add -O2 - we want plugin to work fast even if we to compiling rspamd
code with -O0.
пре 5 година
Anton Yuzhaninov
a796cd7321
Don't set PREFIX variable in cmake
As I can see this variable is not used by rspamd build system. Remove it
because setting it causes a lot of warning with
-DENABLE_CLANG_PLUGIN=ON - PREFIX variable is not documented but used by
cmake internally.
пре 5 година
Anton Yuzhaninov
d4c2bd7ca0
build with -O0
Compilation with -O2/-O3 is slow.
пре 5 година
Anton Yuzhaninov
841f1d2273
Build with clang
пре 5 година
Anton Yuzhaninov
55d667d387
Stop linking with -lnsl on Linux
As far as I know on Linux libnsl is used only for NIS/NIS+ support.
It is highly unlikey that Rspamd users use NIS in 2018.
Keep linking with libnsl on Solaris - there it is likely needed even if
NIS is not used.
пре 5 година
Vsevolod Stakhov
a8b22f9aac
[Minor] Ops, fix symbol name
пре 5 година
Vsevolod Stakhov
993c4a7552
[Conf] Add DWL support in the default configuration
пре 5 година
Vsevolod Stakhov
82834075cb
[Fix] Fix DKIM based RBLs
пре 5 година
Vsevolod Stakhov
80928e500c
[Rules] Add LEAKED_PASSWORD_SCAM rule
пре 5 година
Vsevolod Stakhov
34f0b5587e
[Rework] Change time handling
пре 5 година
Vsevolod Stakhov
8376bed06c
[Minor] Fix deps
пре 5 година
Vsevolod Stakhov
a3c0fbd979
[Project] Rework dynamic parts of symcache items
пре 5 година
Vsevolod Stakhov
4929e73f2b
[Project] Another rework for symbols cache
пре 5 година
Vsevolod Stakhov
c16f639333
[Minor] g_abort requires quite a recent glib
пре 5 година
Vsevolod Stakhov
8ac1446b8a
[Minor] Fix dependencies resolution
пре 5 година
Vsevolod Stakhov
59d10f38bf
[Minor] Sigh, another issue with classifier pseudo-filter
пре 5 година
Vsevolod Stakhov
7054a882a1
Merge pull request #2612 from citrin/luacov-merge
Speedup lua coverage collecting for functional test
пре 5 година
Vsevolod Stakhov
186683c8e8
[Minor] Another hack for classifiers
пре 5 година
Vsevolod Stakhov
3a1e6a2f3c
[Minor] Allow to add conditions for bayes symbol
пре 5 година
Anton Yuzhaninov
8fb8f139e5
Sync lua coverage with .drone.yml
пре 5 година
Vsevolod Stakhov
ccc9d0065d
[Minor] Convert some enums to static macros
пре 5 година
Anton Yuzhaninov
3ebf458996
Speedup lua coverage collecting for functional test
luacov-coveralls merge mode (-j flag) was created to join reports
containing coverage for different source files (e.g. C and Lua code).
Coverage for the same file in two report is not merged, instead one
source file is added several times to source_files array in JSON. As
a result if we use luacov-coveralls -j on report for same source files
it ends up spending a lot of time on parsing and dumping big JSON files.
This change reduces functional test time from 7+ minutes to 4+ minutes.
пре 5 година
Vsevolod Stakhov
649f9aa4a3
[Feature] Allow to add 3rd party clang plugins
пре 5 година
Vsevolod Stakhov
c974d1eaaa
[Minor] Fix format strings
пре 5 година
Vsevolod Stakhov
91287bb840
[Fix] Remove ambigious format flag from printf
пре 5 година
Vsevolod Stakhov
939cec679d
[Minor] Fix LLVM detection
пре 5 година
Vsevolod Stakhov
d7e3ea948d
[Fix] Fix squeezed symbols when using settings
пре 5 година
Vsevolod Stakhov
856cb10dda
[Minor] Various fixes around async events
пре 5 година
Vsevolod Stakhov
a821e3c6d9
[Minor] Improve debugging for lua squeeze
пре 5 година
Vsevolod Stakhov
3ce1f7720f
[Minor] Improve debug traces for async events
пре 5 година
Vsevolod Stakhov
0c20729f33
[Rework] Add more traces to async events, get rid of GQuarks
пре 5 година
Vsevolod Stakhov
2ae394086b
[Minor] Fix variable name
пре 5 година
Vsevolod Stakhov
b8220636d9
[Minor] Fix var name
пре 5 година
Vsevolod Stakhov
c6ccb8d28f
[Rework] Completely rework symbols cache management
пре 5 година
Vsevolod Stakhov
7f702c6f34
[Minor] Add more attributes
пре 5 година
Vsevolod Stakhov
4e68457c2f
[Minor] Add specific attributes to mempool functions
пре 5 година
Vsevolod Stakhov
b67fe9273c
[Minor] Try harder to track DNS based chaining
пре 5 година
Vsevolod Stakhov
880883e61a
[Minor] Fix lua warnings
пре 5 година
Vsevolod Stakhov
e55b2d55dd
[Minor] Fix configwizard behaviour when DB is empty
пре 5 година
Vsevolod Stakhov
55fd863750
[Minor] Fix debugm logic
пре 5 година
Vsevolod Stakhov
aec26d2291
[Minor] Add ability to debug lua redis calls
пре 5 година
Vsevolod Stakhov
b91ac118ac
[Minor] Fix error callback invocation
пре 5 година
Vsevolod Stakhov
e1dba059e1
[Minor] Remove assertion as this case can actually happen
пре 5 година
Vsevolod Stakhov
a22588464c
[Minor] Remove last elt optimization for now
пре 5 година
Vsevolod Stakhov
733c60e01a
Merge pull request #2610 from citrin/functional-test-fix
Fix test case: Cases.210 Clickhouse.001
пре 5 година
Vsevolod Stakhov
12a513a3fe
Merge pull request #2607 from citrin/drone_improvements
Run GDB on cores dumped by functional test
пре 5 година
Vsevolod Stakhov
29d2d4fa26
Merge pull request #2609 from HeinleinSupport/master
[Fix] Antivirus - virus names with 0 were recognized as tables
пре 5 година
Anton Yuzhaninov
43ceedc68f
TCP Connect robot keyword
* reduce timeout to a reasonable value
* explicitly close socket, don't wait for GC
пре 5 година