]> source.dussan.org Git - rspamd.git/log
rspamd.git
3 years ago[Minor] Require either by or from parts in received headers
Vsevolod Stakhov [Fri, 8 Oct 2021 12:18:37 +0000 (13:18 +0100)]
[Minor] Require either by or from parts in received headers

3 years ago[Minor] Restore compatible behaviour for incomplete received headers
Vsevolod Stakhov [Fri, 8 Oct 2021 09:39:59 +0000 (10:39 +0100)]
[Minor] Restore compatible behaviour for incomplete received headers

3 years ago[Minor] Arc: Specify explicit order for the headers added
Vsevolod Stakhov [Thu, 7 Oct 2021 08:50:14 +0000 (09:50 +0100)]
[Minor] Arc: Specify explicit order for the headers added

3 years ago[Minor] Lua_mime: Allow to add headers in specific order
Vsevolod Stakhov [Thu, 7 Oct 2021 08:45:03 +0000 (09:45 +0100)]
[Minor] Lua_mime: Allow to add headers in specific order

3 years ago[Minor] Fix pushing empty strings
Vsevolod Stakhov [Thu, 7 Oct 2021 07:39:57 +0000 (08:39 +0100)]
[Minor] Fix pushing empty strings

3 years ago[Minor] Remove from_ip view as it is useless
Vsevolod Stakhov [Wed, 6 Oct 2021 14:18:33 +0000 (15:18 +0100)]
[Minor] Remove from_ip view as it is useless

3 years ago[Test] Add some more received tests
Vsevolod Stakhov [Wed, 6 Oct 2021 10:42:14 +0000 (11:42 +0100)]
[Test] Add some more received tests

3 years ago[Test] Move tests from lua to C++
Vsevolod Stakhov [Wed, 6 Oct 2021 10:01:21 +0000 (11:01 +0100)]
[Test] Move tests from lua to C++

3 years ago[Minor] Fix ownership issue
Vsevolod Stakhov [Wed, 6 Oct 2021 09:39:20 +0000 (10:39 +0100)]
[Minor] Fix ownership issue

3 years ago[Minor] Remove bogus forward for non-forwarding reference
Vsevolod Stakhov [Wed, 6 Oct 2021 08:54:49 +0000 (09:54 +0100)]
[Minor] Remove bogus forward for non-forwarding reference

3 years ago[Test] Adopt received framework to allow unit testing
Vsevolod Stakhov [Wed, 6 Oct 2021 08:52:37 +0000 (09:52 +0100)]
[Test] Adopt received framework to allow unit testing

3 years ago[Minor] Add utility function for the default size mempool
Vsevolod Stakhov [Wed, 6 Oct 2021 08:15:37 +0000 (09:15 +0100)]
[Minor] Add utility function for the default size mempool

3 years ago[Minor] One more fix for old libicu
Vsevolod Stakhov [Wed, 6 Oct 2021 07:56:53 +0000 (08:56 +0100)]
[Minor] One more fix for old libicu

3 years ago[Minor] Fix rfind usage
Vsevolod Stakhov [Tue, 5 Oct 2021 14:48:29 +0000 (15:48 +0100)]
[Minor] Fix rfind usage

3 years ago[Minor] Fix test message as we now process received headers as expected
Vsevolod Stakhov [Tue, 5 Oct 2021 14:29:56 +0000 (15:29 +0100)]
[Minor] Fix test message as we now process received headers as expected

3 years ago[Fix] Fix parsing of the unquoted attributes in HTML
Vsevolod Stakhov [Tue, 5 Oct 2021 14:28:43 +0000 (15:28 +0100)]
[Fix] Fix parsing of the unquoted attributes in HTML

3 years ago[Fix] Avoid copy for received structure as it has raw C pointers
Vsevolod Stakhov [Tue, 5 Oct 2021 13:38:25 +0000 (14:38 +0100)]
[Fix] Avoid copy for received structure as it has raw C pointers

3 years ago[Minor] Fix build where vector size() is not constexpr
Vsevolod Stakhov [Tue, 5 Oct 2021 11:16:09 +0000 (12:16 +0100)]
[Minor] Fix build where vector size() is not constexpr

3 years ago[Minor] Add workaround for old libicu
Vsevolod Stakhov [Tue, 5 Oct 2021 11:15:04 +0000 (12:15 +0100)]
[Minor] Add workaround for old libicu

3 years ago[Project] Finish received headers rework part
Vsevolod Stakhov [Tue, 5 Oct 2021 11:13:21 +0000 (12:13 +0100)]
[Project] Finish received headers rework part

3 years ago[Minor] Mark operators constexpr
Vsevolod Stakhov [Tue, 5 Oct 2021 10:08:48 +0000 (11:08 +0100)]
[Minor] Mark operators constexpr

3 years ago[Project] Start using of the new received structure
Vsevolod Stakhov [Mon, 4 Oct 2021 20:46:15 +0000 (21:46 +0100)]
[Project] Start using of the new received structure

3 years ago[Project] Move C++ specific declarations to C++ header
Vsevolod Stakhov [Mon, 4 Oct 2021 20:45:59 +0000 (21:45 +0100)]
[Project] Move C++ specific declarations to C++ header

3 years ago[Project] Rework received headers parsing to C++
Vsevolod Stakhov [Sun, 3 Oct 2021 11:52:45 +0000 (12:52 +0100)]
[Project] Rework received headers parsing to C++

3 years ago[Minor] Add some more helpers
Vsevolod Stakhov [Sun, 3 Oct 2021 11:52:23 +0000 (12:52 +0100)]
[Minor] Add some more helpers

3 years ago[Minor] Add some utility methods
Vsevolod Stakhov [Sat, 2 Oct 2021 13:57:04 +0000 (14:57 +0100)]
[Minor] Add some utility methods

3 years ago[Minor] Add missing include
Vsevolod Stakhov [Fri, 1 Oct 2021 19:40:04 +0000 (20:40 +0100)]
[Minor] Add missing include

3 years ago[Project] Allow mempool allocated mime strings
Vsevolod Stakhov [Fri, 1 Oct 2021 19:24:20 +0000 (20:24 +0100)]
[Project] Allow mempool allocated mime strings

3 years ago[Feature] Ratelimit: Add per bucket configurations
Vsevolod Stakhov [Fri, 1 Oct 2021 13:35:43 +0000 (14:35 +0100)]
[Feature] Ratelimit: Add per bucket configurations

This change add custom per bucket configuration
- symbol: for custom symbol
- message: for custom message
- skip_soft_reject: to disable soft rejection logic for this bucket

3 years ago[Minor] Allow to construct an empty string with a filter
Vsevolod Stakhov [Thu, 30 Sep 2021 20:00:31 +0000 (21:00 +0100)]
[Minor] Allow to construct an empty string with a filter

3 years ago[Project] Add trim operations
Vsevolod Stakhov [Thu, 30 Sep 2021 13:34:22 +0000 (14:34 +0100)]
[Project] Add trim operations

3 years ago[Minor] Remove const_iterator, template filter functor
Vsevolod Stakhov [Thu, 30 Sep 2021 09:18:23 +0000 (10:18 +0100)]
[Minor] Remove const_iterator, template filter functor

3 years ago[Test] Update iterator tests
Vsevolod Stakhov [Thu, 30 Sep 2021 09:18:10 +0000 (10:18 +0100)]
[Test] Update iterator tests

3 years ago[Project] Add constant iterators
Vsevolod Stakhov [Wed, 29 Sep 2021 20:13:20 +0000 (21:13 +0100)]
[Project] Add constant iterators

3 years ago[Minor] Remove optional as function_view has nullable semantics
Vsevolod Stakhov [Wed, 29 Sep 2021 19:29:52 +0000 (20:29 +0100)]
[Minor] Remove optional as function_view has nullable semantics

3 years ago[Minor] Missing include
Vsevolod Stakhov [Wed, 29 Sep 2021 17:03:23 +0000 (18:03 +0100)]
[Minor] Missing include

3 years ago[Project] Add helper library to handle mime strings in a more safe matter
Vsevolod Stakhov [Wed, 29 Sep 2021 17:00:03 +0000 (18:00 +0100)]
[Project] Add helper library to handle mime strings in a more safe matter

3 years ago[Minor] Add C++ safe guards
Vsevolod Stakhov [Wed, 29 Sep 2021 16:58:12 +0000 (17:58 +0100)]
[Minor] Add C++ safe guards

3 years ago[Minor] Improve learn error reporting
Vsevolod Stakhov [Tue, 28 Sep 2021 14:34:25 +0000 (15:34 +0100)]
[Minor] Improve learn error reporting

3 years agoMerge pull request #3915 from a16bitsysop/static
Vsevolod Stakhov [Tue, 28 Sep 2021 11:32:08 +0000 (12:32 +0100)]
Merge pull request #3915 from a16bitsysop/static

[Fix] fix static building

3 years ago[Minor] Finish transition to signed log id
Vsevolod Stakhov [Mon, 27 Sep 2021 14:14:45 +0000 (15:14 +0100)]
[Minor] Finish transition to signed log id

3 years ago[Minor] Add a special state to tags content parsing to avoid illegal lookahead
Vsevolod Stakhov [Mon, 27 Sep 2021 14:07:32 +0000 (15:07 +0100)]
[Minor] Add a special state to tags content parsing to avoid illegal lookahead

3 years ago[Fix] Add temporary guard to prevent linked list exploitation
Vsevolod Stakhov [Mon, 27 Sep 2021 12:56:05 +0000 (13:56 +0100)]
[Fix] Add temporary guard to prevent linked list exploitation

3 years ago[Fix] fix static building 3915/head
Duncan Bellamy [Mon, 27 Sep 2021 10:16:47 +0000 (11:16 +0100)]
[Fix] fix static building

3 years ago[Minor] Rework to fix issues in Lua API
Vsevolod Stakhov [Sat, 25 Sep 2021 12:01:23 +0000 (13:01 +0100)]
[Minor] Rework to fix issues in Lua API

Found by: coverity scan

3 years ago[Minor] Fix some more issues
Vsevolod Stakhov [Sat, 25 Sep 2021 11:45:29 +0000 (12:45 +0100)]
[Minor] Fix some more issues

Found by: coverity scan

3 years ago[Fix] Remove bogus G_LIKELY
Vsevolod Stakhov [Sat, 25 Sep 2021 11:22:43 +0000 (12:22 +0100)]
[Fix] Remove bogus G_LIKELY

3 years ago[Minor] Remove unreachable code
Vsevolod Stakhov [Sat, 25 Sep 2021 11:19:39 +0000 (12:19 +0100)]
[Minor] Remove unreachable code

3 years ago[Minor] Ensure that Redis inactive connections are well maintained
Vsevolod Stakhov [Thu, 23 Sep 2021 13:02:34 +0000 (14:02 +0100)]
[Minor] Ensure that Redis inactive connections are well maintained

3 years ago[Fix] Try to use on_connect/on_disconnect callbacks to handle internal Redis failures
Vsevolod Stakhov [Thu, 23 Sep 2021 12:26:02 +0000 (13:26 +0100)]
[Fix] Try to use on_connect/on_disconnect callbacks to handle internal Redis failures

3 years ago[Minor] Free the proper pointer
Vsevolod Stakhov [Thu, 23 Sep 2021 10:08:49 +0000 (11:08 +0100)]
[Minor] Free the proper pointer

3 years agoMerge pull request #3901 from citrin/rspamc
Vsevolod Stakhov [Wed, 22 Sep 2021 17:13:40 +0000 (18:13 +0100)]
Merge pull request #3901 from citrin/rspamc

[Fix] buffer overflow in rspamc counters

3 years ago[Test] Add the test for the previous fix
Vsevolod Stakhov [Wed, 22 Sep 2021 12:01:54 +0000 (13:01 +0100)]
[Test] Add the test for the previous fix

3 years ago[Fix] Fix parsing of the from_hostname when it is an IP address
Vsevolod Stakhov [Wed, 22 Sep 2021 12:01:40 +0000 (13:01 +0100)]
[Fix] Fix parsing of the from_hostname when it is an IP address

3 years ago[Fix] Another try to fix rspamd_text passing in the selectors
Vsevolod Stakhov [Wed, 22 Sep 2021 10:10:59 +0000 (11:10 +0100)]
[Fix] Another try to fix rspamd_text passing in the selectors

Suggested by: @citrin

3 years ago[Minor] Free the allocated and not modified key
Vsevolod Stakhov [Wed, 22 Sep 2021 08:20:45 +0000 (09:20 +0100)]
[Minor] Free the allocated and not modified key

Found by: coverity scan

3 years ago[Minor] Explain unobvious code
Vsevolod Stakhov [Tue, 21 Sep 2021 18:24:35 +0000 (19:24 +0100)]
[Minor] Explain unobvious code

3 years ago[Minor] Fix use after free
Vsevolod Stakhov [Tue, 21 Sep 2021 18:22:26 +0000 (19:22 +0100)]
[Minor] Fix use after free

Reported by: @citrin

3 years ago[Fix] Fix passing of rspamd_text in selectors pipelines
Vsevolod Stakhov [Tue, 21 Sep 2021 18:21:30 +0000 (19:21 +0100)]
[Fix] Fix passing of rspamd_text in selectors pipelines

3 years ago[Minor] Fix format string...
Vsevolod Stakhov [Tue, 21 Sep 2021 11:31:28 +0000 (12:31 +0100)]
[Minor] Fix format string...

3 years agoMerge pull request #3902 from citrin/warnings
Vsevolod Stakhov [Tue, 21 Sep 2021 11:28:18 +0000 (12:28 +0100)]
Merge pull request #3902 from citrin/warnings

[Minor] Fix compiler warnings in src/libutil/util.c

3 years ago[Minor] Fix some more issues
Vsevolod Stakhov [Tue, 21 Sep 2021 11:27:10 +0000 (12:27 +0100)]
[Minor] Fix some more issues

Found by: coverity scan

3 years ago[Minor] Qualify C++ enum
Vsevolod Stakhov [Tue, 21 Sep 2021 11:16:26 +0000 (12:16 +0100)]
[Minor] Qualify C++ enum

3 years ago[Minor] Fix some more issues
Vsevolod Stakhov [Tue, 21 Sep 2021 11:13:44 +0000 (12:13 +0100)]
[Minor] Fix some more issues

Found by: coverity scan

3 years ago[Minor] Fix more error paths in Lua
Vsevolod Stakhov [Tue, 21 Sep 2021 10:38:17 +0000 (11:38 +0100)]
[Minor] Fix more error paths in Lua

Found by: coverity scan

3 years ago[Minor] Improve readability of recently changed rspamc code 3901/head
Anton Yuzhaninov [Tue, 21 Sep 2021 10:14:10 +0000 (11:14 +0100)]
[Minor] Improve readability of recently changed rspamc code

3 years ago[Minor] Fix compiler warnings in src/libutil/util.c 3902/head
Anton Yuzhaninov [Tue, 21 Sep 2021 09:28:43 +0000 (10:28 +0100)]
[Minor] Fix compiler warnings in src/libutil/util.c

src/libutil/util.c:1362:7: warning: unused variable 'len' [-Wunused-variable]
        gint len = 0;
             ^
src/libutil/util.c:1363:8: warning: unused variable 'pass' [-Wunused-variable]
        gchar pass[BUFSIZ];
              ^
2 warnings generated.

3 years ago[Fix] buffer overflow in rspamc counters
Anton Yuzhaninov [Tue, 21 Sep 2021 09:00:17 +0000 (10:00 +0100)]
[Fix] buffer overflow in rspamc counters

If request to /counters returns no symbols then max_len would have
a negative value:

Results for command: counters (0.003 seconds)
=================================================================
==22096==ERROR: AddressSanitizer: negative-size-param: (size=-2147483604)
    #0 0x33ff13 in __asan_memset (/usr/bin/rspamc+0x33ff13)
    #1 0x383432 in rspamc_counters_output /usr/src/debug/rspamd/src/client/rspamc.c:1064:2
    #2 0x388c49 in rspamc_client_cb /usr/src/debug/rspamd/src/client/rspamc.c:1600:6
    ...

3 years ago[Minor] Remove bogus condition
Vsevolod Stakhov [Mon, 20 Sep 2021 19:30:25 +0000 (20:30 +0100)]
[Minor] Remove bogus condition

3 years ago[Minor] Fix macro name
Vsevolod Stakhov [Mon, 20 Sep 2021 19:28:00 +0000 (20:28 +0100)]
[Minor] Fix macro name

Reported by: @citrin

3 years ago[Fix] Fix rubbish QP sequences decoding
Vsevolod Stakhov [Mon, 20 Sep 2021 19:26:15 +0000 (20:26 +0100)]
[Fix] Fix rubbish QP sequences decoding

3 years ago[Test] Add tests for broken qp decoding
Vsevolod Stakhov [Mon, 20 Sep 2021 19:21:49 +0000 (20:21 +0100)]
[Test] Add tests for broken qp decoding

3 years agoMerge pull request #3899 from citrin/cmake-cleanup
Vsevolod Stakhov [Mon, 20 Sep 2021 16:50:41 +0000 (17:50 +0100)]
Merge pull request #3899 from citrin/cmake-cleanup

[Minor] Cleanup unused cmake checks

3 years ago[Minor] Cleanup unused cmake checks 3899/head
Anton Yuzhaninov [Mon, 20 Sep 2021 16:37:06 +0000 (17:37 +0100)]
[Minor] Cleanup unused cmake checks

3 years ago[Minor] Oops, fix emplacement
Vsevolod Stakhov [Sun, 19 Sep 2021 11:15:30 +0000 (12:15 +0100)]
[Minor] Oops, fix emplacement

3 years ago[Minor] Fix some leaks on error paths
Vsevolod Stakhov [Sun, 19 Sep 2021 11:08:48 +0000 (12:08 +0100)]
[Minor] Fix some leaks on error paths

Found by: coverity scan

3 years ago[Fix] Fix hash table lookup
Vsevolod Stakhov [Sun, 19 Sep 2021 10:47:00 +0000 (11:47 +0100)]
[Fix] Fix hash table lookup

Found by: coverity scan

3 years ago[Minor] Some minor cleanups
Vsevolod Stakhov [Sun, 19 Sep 2021 09:30:39 +0000 (10:30 +0100)]
[Minor] Some minor cleanups

Found by: coverity scan

3 years ago[Minor] Fix some more issues
Vsevolod Stakhov [Sat, 18 Sep 2021 14:53:20 +0000 (15:53 +0100)]
[Minor] Fix some more issues

Found by: coverity scan

3 years ago[Minor] Fix more issues in libmime
Vsevolod Stakhov [Sat, 18 Sep 2021 11:56:46 +0000 (12:56 +0100)]
[Minor] Fix more issues in libmime

Found by: coverity scan

3 years ago[Minor] Plug some leaks on error paths
Vsevolod Stakhov [Sat, 18 Sep 2021 11:29:57 +0000 (12:29 +0100)]
[Minor] Plug some leaks on error paths

Found by: coverity scan

3 years ago[Minor] Use the proper variable in debug
Vsevolod Stakhov [Sat, 18 Sep 2021 08:35:51 +0000 (09:35 +0100)]
[Minor] Use the proper variable in debug

Found by: coverity scan

3 years ago[Minor] Do not read extra byte of garbadge
Vsevolod Stakhov [Fri, 17 Sep 2021 20:55:43 +0000 (21:55 +0100)]
[Minor] Do not read extra byte of garbadge

Found by: coverity scan

3 years ago[Minor] Fix some double frees
Vsevolod Stakhov [Fri, 17 Sep 2021 20:47:17 +0000 (21:47 +0100)]
[Minor] Fix some double frees

Found by: coverity scan

3 years ago[Minor] Remove dead loop
Vsevolod Stakhov [Fri, 17 Sep 2021 20:36:32 +0000 (21:36 +0100)]
[Minor] Remove dead loop

3 years ago[Minor] Fix some dead ends
Vsevolod Stakhov [Fri, 17 Sep 2021 20:35:30 +0000 (21:35 +0100)]
[Minor] Fix some dead ends

Found by: coverity scan

3 years ago[Minor] Fix error path varargs handling
Vsevolod Stakhov [Fri, 17 Sep 2021 20:33:01 +0000 (21:33 +0100)]
[Minor] Fix error path varargs handling

Found by: coverity

3 years ago[Feature] Antivirus: Allow to set fake eicar patterns for testing AV engines
Vsevolod Stakhov [Fri, 17 Sep 2021 15:43:32 +0000 (16:43 +0100)]
[Feature] Antivirus: Allow to set fake eicar patterns for testing AV engines

3 years ago[Minor] Escape \uFFFD in the sources
Vsevolod Stakhov [Fri, 17 Sep 2021 11:46:41 +0000 (12:46 +0100)]
[Minor] Escape \uFFFD in the sources

3 years agoMerge pull request #3894 from citrin/bitcoin-lua-opt
Vsevolod Stakhov [Fri, 17 Sep 2021 08:56:57 +0000 (09:56 +0100)]
Merge pull request #3894 from citrin/bitcoin-lua-opt

[Minor]  Skip bitcoin address check for very long words

3 years ago[Minor] Skip bitcoin address check for very long words 3894/head
Anton Yuzhaninov [Fri, 17 Sep 2021 08:46:32 +0000 (09:46 +0100)]
[Minor]  Skip bitcoin address check for very long words

Exclude very long words (which can be extracted e. g. from some text
attachments) from bitcoin address check to avoid excessive resource
usage.

3 years ago[Minor] One more polishing thing
Vsevolod Stakhov [Thu, 16 Sep 2021 12:47:48 +0000 (13:47 +0100)]
[Minor] One more polishing thing

3 years ago[Minor] Fix unregistration of the context and improve logging
Vsevolod Stakhov [Thu, 16 Sep 2021 12:38:35 +0000 (13:38 +0100)]
[Minor] Fix unregistration of the context and improve logging

3 years ago[Minor] Fix list splice
Vsevolod Stakhov [Thu, 16 Sep 2021 09:34:57 +0000 (10:34 +0100)]
[Minor] Fix list splice

3 years agoMerge pull request #3892 from fatalbanana/friendlier_tests
Vsevolod Stakhov [Wed, 15 Sep 2021 13:05:05 +0000 (14:05 +0100)]
Merge pull request #3892 from fatalbanana/friendlier_tests

[Test] Avoid importing user configuration

3 years ago[Test] Avoid importing user configuration 3892/head
Andrew Lewis [Wed, 15 Sep 2021 11:31:44 +0000 (13:31 +0200)]
[Test] Avoid importing user configuration

3 years ago[Minor] Add attribute noreturn to start_hs_helper function
Vsevolod Stakhov [Tue, 14 Sep 2021 20:21:07 +0000 (21:21 +0100)]
[Minor] Add attribute noreturn to start_hs_helper function

Suggested by: @citrin

3 years agoMerge pull request #3891 from fatalbanana/doxydown
Vsevolod Stakhov [Tue, 14 Sep 2021 15:35:15 +0000 (16:35 +0100)]
Merge pull request #3891 from fatalbanana/doxydown

[Minor] Update embedded doxydown

3 years ago[Minor] Update embedded doxydown 3891/head
Andrew Lewis [Tue, 14 Sep 2021 14:17:20 +0000 (16:17 +0200)]
[Minor] Update embedded doxydown

 - To fix nested lists

3 years agoMerge pull request #3890 from fatalbanana/docs
Vsevolod Stakhov [Tue, 14 Sep 2021 13:44:07 +0000 (14:44 +0100)]
Merge pull request #3890 from fatalbanana/docs

[Minor] Updates for API documentation