<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rspamd.git/src/lua/lua_task.c, branch master</title>
<subtitle>rspamd</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/atom/src/lua/lua_task.c?h=master</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/atom/src/lua/lua_task.c?h=master'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/'/>
<updated>2026-11-10T19:28:58Z</updated>
<entry>
<title>[Fix] Check what the url bindings take from the Lua stack</title>
<updated>2026-11-10T19:28:58Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-10T19:28:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=38a176a0c9f96f314fedec6936f9d84d3914b747'/>
<id>urn:sha1:38a176a0c9f96f314fedec6936f9d84d3914b747</id>
<content type='text'>
`url.create` with a text that has no url returned the text as
if it was an url, and wrote the flags given into it;
`set_redirected` with such a string raised an error. Both looked
at the type of the stack top, which is an argument when nothing
is found.

`task:inject_url` dereferenced a null pointer when its third
argument was userdata other than a mime part. The length of the
`callto` scheme was the one of `tel`.
</content>
</entry>
<entry>
<title>[Fix] Sample urls for Lua among those that a call returns</title>
<updated>2026-11-10T17:54:52Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-10T17:54:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=5f78de039fab664386ce481b3a6368ea579b7917'/>
<id>urn:sha1:5f78de039fab664386ce481b3a6368ea579b7917</id>
<content type='text'>
Over max_lua_urls, task:get_urls() kept each url with a chance
taken from the size of the whole set, with the urls that the call
filters out: email addresses added to a message made its links
disappear from the rules. The number of urls that pass the filter
of the call is counted first, and exactly the limit of them is
drawn when there are more. The draw is seeded with a value of
the process, so a sender cannot tell which urls are kept.

Also: the plain array of protocols was read from the task and not
from the table, so it was ignored; sort = false sorted; and the
comparison of two urls returned a number, which table.sort does
not take.
</content>
</entry>
<entry>
<title>[Fix] Count archive files, not names, in limited reads</title>
<updated>2026-11-06T16:13:41Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-06T16:13:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=13e8976f6dc0e63d83f57eb30d5ceac71dc7f648'/>
<id>urn:sha1:13e8976f6dc0e63d83f57eb30d5ceac71dc7f648</id>
<content type='text'>
Rules read a limited number of archive names: CHECK_ARCHIVES the first
10, mime_types, multimap and the scanners 1000. A zip lists other
names of its files right after them (Unicode Path), and the names of
its local headers after its directory, so names crowded files out:
nine harmless names of a first file pushed a second payload.exe out
of CHECK_ARCHIVES, and renamed local headers pushed out a file that
only a local header names.

get_files(n) and get_files_full(n) now read the first n files of the
directory and the first n files of the local headers, each with the
other names listed right after it, which are flagged
RSPAMD_ARCHIVE_FILE_SAME_ENTRY. The reads stay bounded, as an entry
has at most 9 such names.
</content>
</entry>
<entry>
<title>[Fix] Give the URL rewrite policy the whole link</title>
<updated>2026-11-06T10:59:17Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-06T10:59:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=7d24eda43f89264b9516d91ac59fca69a64ce881'/>
<id>urn:sha1:7d24eda43f89264b9516d91ac59fca69a64ce881</id>
<content type='text'>
An unquoted attribute value with a quote in it is read as a link up to
the quote (href=3D"... of undecoded quoted-printable is no link to
that site), but browsers go to the whole value, which the rewrite
replaces. The policy got the part before the quote, so the URL it
returned dropped the rest: href=https://example.org/reset?token=abc"def
lost its "def. The policy and task:get_html_urls() now get the whole
value as browsers read it, the part after the quote read on its own
(NUL bytes, character references). The docs say that this value may
differ from the text of task:get_urls().
</content>
</entry>
<entry>
<title>[Fix] List the zip names readers show from local headers</title>
<updated>2026-11-06T08:15:52Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-06T08:15:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=a63ac435c0d73bc20dd4e986479116746bc0c622'/>
<id>urn:sha1:a63ac435c0d73bc20dd4e986479116746bc0c622</id>
<content type='text'>
A zip lists its files twice, in its directory and in a local header
before each file's data, and readers do not agree on which they show:
bsdtar and macOS go by local headers, 7-Zip lists the local headers
that no directory record names. rspamd listed the directory only, so
a directory naming readme.txt hid a payload.exe local header, and the
files of an archive whose directory was not found, or was a fake one,
were not listed.
Readers also show the Info-ZIP Unicode Path extra field (0x7075) in
place of the name when its CRC is that of the name, or of the Unicode
Path before it (bsdtar), whatever its version.

The local headers walked and the Unicode Paths are now listed as well.
As these are most often other names of a file listed already, they are
flagged as aliases (`alias` in get_files_full), and rules that count
the files of an archive (SINGLE_FILE_ARCHIVE_WITH_EXE, the single-file
checks of mime_types) skip them, while the extension checks see them.
At most max_archive_files distinct local headers are kept, and names
are converted once.
</content>
</entry>
<entry>
<title>[Fix] Lua: free replaced recipients and keep the original envelope sender</title>
<updated>2026-11-05T08:10:20Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-04T17:38:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=e5fe2632b44af780832fa2e01df73eccec07236a'/>
<id>urn:sha1:e5fe2632b44af780832fa2e01df73eccec07236a</id>
<content type='text'>
task:set_recipients with the rewrite flag freed the wrong list and leaked the
replaced one. task:set_from overwrote the original envelope sender instead of
keeping it next to the rewritten one, and leaked the previous rewrite. Imported
addresses are sized for the whole user@domain.
</content>
</entry>
<entry>
<title>[Fix] Store symbol options verbatim, escape at output</title>
<updated>2026-11-01T22:11:33Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-11-01T22:09:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=c08eb7c50d00e49cda1100ac3085f3cc2b280952'/>
<id>urn:sha1:c08eb7c50d00e49cda1100ac3085f3cc2b280952</id>
<content type='text'>
Encoding delimiters when an option is inserted altered the values
seen by regexps, composites and multimap and littered X-Spamd-Result
with %25 and %2C. Options are now stored as is (only invalid
characters become U+FFFD); exporters that join options
(X-Spamd-Result, X-Virus, metadata_exporter, ClickHouse and the
symbols log line) percent-encode an option only when it contains one
of `[]{};,`, together with `%` for unambiguous decoding.

Plugins that previously joined several values into one
comma-separated option (asn, reputation, rbl, dmarc, content rules,
MULTIPLE_UNIQUE_HEADERS) now insert them as separate options.

Issue: #6344
</content>
</entry>
<entry>
<title>[Fix] Preserve commas in stored symbol options</title>
<updated>2026-10-30T16:31:35Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-10-30T16:31:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=59ae4ba2facdb9d691770f058d866822203daee0'/>
<id>urn:sha1:59ae4ba2facdb9d691770f058d866822203daee0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[Fix] Encode delimiters in symbol options</title>
<updated>2026-10-30T14:26:20Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-10-30T14:26:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=a69a92fbeeffd375fa9cd4612712b5f6318c0c51'/>
<id>urn:sha1:a69a92fbeeffd375fa9cd4612712b5f6318c0c51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[Fix] store_in_file: keep 0600 default mode for table args</title>
<updated>2026-10-18T10:32:57Z</updated>
<author>
<name>Vsevolod Stakhov</name>
<email>vsevolod@rspamd.com</email>
</author>
<published>2026-10-18T10:32:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/rspamd.git/commit/?id=fe2c6949dc1efb1bfdef9e1e3770a586b969c7fe'/>
<id>urn:sha1:fe2c6949dc1efb1bfdef9e1e3770a586b969c7fe</id>
<content type='text'>
With the default parse mode a missing `mode` key was reset to 0, so
the table form created files with 0000 permissions instead of the
documented 0600. Parse with IGNORE_MISSING to keep the initialisers,
and test the default mode for both `filename` and `tmpmask`.
</content>
</entry>
</feed>
