summaryrefslogtreecommitdiffstats
path: root/src/libutil
Commit message (Collapse)AuthorAgeFilesLines
* [Fix] Fix copying of sockaddr_un addressesTimo Rothenpieler2022-09-261-6/+8
| | | | | | | | | | They can be very tiny (hence the adjustment of the size assert) and the path can contain intermittent null bytes, so the only choice is to trust the input slen and copy the whole struct. An autobound unix socket uses an abstract address, which starts with a null byte, hence this change is neccesary for such an address getting copied properly.
* [Fix] Bind AF_UNIX DGRAM client connection to annonymous addressTimo Rothenpieler2022-09-261-0/+13
| | | | Fixes #4278
* [Minor] Oops, remove experimentVsevolod Stakhov2022-09-241-7/+0
|
* [Minor] Some neats when working with Unix socketsVsevolod Stakhov2022-09-241-0/+10
|
* [Fix] Plug memory leak in regexp destruction with pcre2Vsevolod Stakhov2022-09-181-10/+18
|
* [Minor] Use a more unified approach to hash stringsVsevolod Stakhov2022-08-151-35/+22
|
* [Minor] Restrict `m` patterns in regexpsVsevolod Stakhov2022-07-301-1/+1
| | | | Issue: #4221
* [Minor] Glob patterns actually allow rangesVsevolod Stakhov2022-07-301-5/+32
|
* [Minor] Add is_avalanching type hintVsevolod Stakhov2022-07-181-0/+1
|
* [Rework] Use another version of hash table from the same authorVsevolod Stakhov2022-07-171-3/+3
|
* [Minor] Try to fix unpadded base32 decodingVsevolod Stakhov2022-07-151-1/+1
|
* [Fix] Mempool: Fix alloc_array function to actually multiply nmembers by sizeVsevolod Stakhov2022-06-291-1/+1
| | | | Found by: @citrin
* [Fix] Upstreams: Don't ignore revive_time config optionAnton Yuzhaninov2022-06-291-1/+1
|
* [Minor] Grow small strings more quicklyVsevolod Stakhov2022-06-231-1/+6
|
* [Minor] Move stuffVsevolod Stakhov2022-06-212-40/+39
|
* [Minor] Remove deprecated stuffVsevolod Stakhov2022-06-191-2/+2
|
* [Minor] Remove unused functionVsevolod Stakhov2022-06-162-30/+0
|
* [Minor] Simplify array_of using types deductionVsevolod Stakhov2022-06-111-2/+3
|
* [Minor] Fix compile issuesVsevolod Stakhov2022-06-071-1/+1
|
* [Minor] Add a memory erasing allocatorVsevolod Stakhov2022-06-061-0/+21
|
* [Minor] Change macro for C++Vsevolod Stakhov2022-05-281-1/+7
|
* [Minor] Implement bits printing for numbersVsevolod Stakhov2022-05-152-11/+21
|
* [Minor] Move common hashing utils to a separate util headerVsevolod Stakhov2022-05-141-0/+54
|
* [Minor] Replace some of macro usesVsevolod Stakhov2022-05-071-2/+2
|
* [Minor] Add enumerate helperVsevolod Stakhov2022-05-041-0/+26
|
* [Minor] Fix empty cache filename caseVsevolod Stakhov2022-05-021-0/+4
|
* [Minor] Handle unexpected casesVsevolod Stakhov2022-05-021-0/+14
|
* [Minor] Improve test stabilityVsevolod Stakhov2022-05-011-6/+12
|
* [Minor] Some more fixesVsevolod Stakhov2022-05-012-3/+5
|
* [Minor] Fix RAII locked fileVsevolod Stakhov2022-05-012-12/+44
|
* [Minor] Remove useless comparisionVsevolod Stakhov2022-05-011-4/+0
|
* [Project] Move some more methodsVsevolod Stakhov2022-04-301-4/+15
|
* [Project] Some more adjustments in symbols registrationVsevolod Stakhov2022-04-121-0/+6
|
* [Minor] Add some testsVsevolod Stakhov2022-04-031-0/+71
|
* [Project] Add raii_sink file helperVsevolod Stakhov2022-04-022-3/+113
|
* [Rework] Rework files structureVsevolod Stakhov2022-04-021-1/+2
|
* [Minor] Also allow mmaps to be RAII protectedVsevolod Stakhov2022-04-022-1/+116
|
* [Minor] Add a simple utility to deal with locked filesVsevolod Stakhov2022-04-022-0/+71
|
* [Minor] Add array allocation methods to handle integer overflowVsevolod Stakhov2022-04-012-0/+34
|
* [Minor] Allow to specify mempool when copying an IP address structureVsevolod Stakhov2022-03-203-4/+4
|
* [Minor] Use wyrand for fast random as we already use mumhash for fast hashingVsevolod Stakhov2022-03-182-49/+45
|
* make gcc 8.5 happyMehmet Suslu2022-03-151-1/+1
| | | gcc 8.5 doesn't compile this file without template parameters for ptr_and_refcnt constructor.
* [Minor] Move summation to a separate routineVsevolod Stakhov2022-03-052-0/+31
|
* Spelling (#4086)Josh Soref2022-02-2211-16/+16
| | | [Rework] Massive spelling fix from @jsoref
* [Minor] Improve error reportingVsevolod Stakhov2022-02-131-2/+8
| | | | Issue: #4076
* [Minor] Off by oneVsevolod Stakhov2022-02-081-1/+2
|
* [Minor] Fix a corner caseVsevolod Stakhov2022-02-071-1/+1
|
* [CritFix] Fix upstreams name resolution when there is also a portVsevolod Stakhov2022-02-071-3/+29
| | | | | | | | This fix is intended to address the case when Rspamd queries for a hostname with a port part when re-resolving upstreams addresses via the upstreams module. Found by: @slavkoja Confirmed by: @moisseev
* [Minor] Remove sequential algorithm as it is not actually a rotation algVsevolod Stakhov2022-01-181-4/+0
| | | | | | | Sequential rotation was used just to rotate all upstreams in the loop (e.g. when you need to do some action for all upstreams). Allowing to specify it as a user defined algorithm was a mistake as it breaks upstreams API expectations. See #4043
* [Rework] Timeouts are now global per event and not reseted by IO activityVsevolod Stakhov2022-01-062-18/+7
| | | | | | This actually reproduces old libevent behaviour and it was changed by a big design mistake. We really want IO timeouts to be fired for the whole set of subsequent events, otherwise it should be designed in a more configurable way...