Act nowcan affect a running system
FastCGI proxying and ZIP GCM arrive; macOS ARM64 service calls recover
The proxy gains asynchronous FastCGI and virtual WSGI routes, while ZIP adds opt-in AES-256-GCM and cheaper authenticated extraction. Several same-day corrections are essential to those new paths. Delphi macOS ARM64 service stubs are repaired, and DuckDB gains file conversion helpers.
TL;DR
- FastCGI proxying supports physical scripts and hpoFastCgiWsgi virtual routes.
- AE-3 is opt-in; include the subsequent GCM Auth correction, not only its initial implementation.
- Delphi macOS ARM64 interface service calls no longer use an empty stub.
- DuckDB file helpers need their same-day COPY binding and row-count fix.
Upgrade advice
Take the complete historical 2.4.18133 batch. Do not isolate AE-3, Auth, DuckDB file helpers or the first FastCGI API from their same-day follow-ups. Review custom AsyncResponse overrides and test Delphi macOS ARM64 service results. The raw payload has no superseded_by links; later fixes are not ruled out.
24 of 24 entries · 30 commits upstream
1
High
GCM authentication-only processing handles the AVX path correctly
TAesGcmEngine.Auth adds AVX GHASH buffering, flushes pending AAD before ciphertext and updates the final partial-block length. Add_AAD shares AvxAuth.
Fixes
mormot.crypt.core
921c3dd6+73-45
crypt: fixed TAesGcmEngine.Auth method
Impact
Delphi/FPC callers of the new authentication-only API must include this follow-up, particularly on AVX-capable x64 systems; Auth requires Reset first.
Worth a look
Public API
TAesGcmEngine.Authbehaviour-changed
Units
2
High
Delphi macOS ARM64 service calls use working interface stubs
mormot.core.interfaces enables the Apple ARM64 X8 result and static fake-VMT path for macOS and links delphi-macos-arm64.o.
Fixes
mormot.core.interfaces
a8116fbd+7-2
core: interface-based services on Delphi macOS aarch64
Impact
Delphi macOS ARM64 interface-based service calls no longer silently return empty results from an empty stub. FPC paths are unchanged.
Upgrade recommended
Take the macOS ARM64 stub fix and test interface service methods returning records or TServiceCustomAnswer.
3
Medium
Poll termination wakes Linux epoll waiters
TPollAbstract owns Terminated; pollers reject work after termination. Linux epoll uses a private level-triggered eventfd and closes descriptors during destruction.
Fixes
mormot.net.sock+1
bbbb264b+85-44
net: cleaner TPollAbstract termination and shutdown
Impact
Async Delphi/FPC shutdown can release Linux waiters without exposing the wake event as a socket. Owners must still wait for active GetOne calls before freeing the poller.
Worth a look
Public API
TPollAbstract.Terminatedadded
4
Medium
DuckDB file helpers bind filenames in COPY order and return row counts
DoCopy binds Dest before Source and reads the returned count row; ImportFile also reads its count result. File bindings use TFileName directly.
Fixes
mormot.db.sql.duckdb
4478f7b5+19-15
db: fixed some #792 DuckDB issues
Impact
The new Delphi/FPC DuckDB import/export/conversion helpers need this correction for proper paths and reported row counts.
Worth a look
Public API
TSqlDBDuckDBConnectionProperties.ImportFilebehaviour-changedTSqlDBDuckDBConnectionProperties.ConvertFilebehaviour-changedTSqlDBDuckDBConnectionProperties.ExportSqlbehaviour-changed
Units
5
Medium
Linux eventfd wakeups write their counter
LinuxEventFDWrite writes a QWord through FpWrite when fd is positive, replacing an empty implementation.
Fixes
mormot.core.os.posix
d0e39745+4-2
core: minimal LinuxEventFDWrite() implementation on all compilers
Impact
Linux Delphi/FPC polling code can signal the new epoll termination eventfd; other OS paths are unchanged.
Units
6
Medium
ZIP encryption adds an opt-in AES-256-GCM mode
TZipCryptGcm and zeAes256Gcm add AE-3 handling. TZipWrite.Ae3Iterations defaults to 600000 and accepts 320000..5000000 in 10000-step increments.
New features
mormot.core.zip+1
b20fe059+13958-13097
crypt: new TZipCryptGcm Class Implementing AES-GCM-256 WinZip AE-3 Format
Impact
Delphi/FPC writers must explicitly choose the new mode; older readers may not understand it. Default zeAes256 remains unchanged.
Worth a look
Public API
TZipCryptGcmaddedzeAes256GcmaddedTZipWrite.Ae3IterationsaddedTZipCrypt.AesIterationsaddedTFileInfoExtraAes.iterationsadded
7
Medium
The HTTP proxy relays requests to FastCGI responders
mormot.net.proxy adds FastCGI records, parsing, TFastCgiAsyncConnection(s), AddFastCgi and FastCgiTimeoutSec. AsyncResponse gains optional CustomHeaders.
New features
mormot.net.proxy+2
3c9a6f8f+1173-9
net: THttpProxyServer can relay requests to a FastCGI application - see #388
Impact
Delphi/FPC proxies can use fcgi:// TCP or Unix-socket backends with one connection per request. Custom AsyncResponse overrides must match the added parameter.
Worth a look
Public API
TFastCgiAsyncConnectionaddedTFastCgiAsyncConnectionsaddedTFastCgiHeaderaddedTFastCgiRecordTypeaddedTFastCgiResponseaddedTHttpProxyServerSettings.AddFastCgiaddedTHttpProxyUrlSettings.FastCgiTimeoutSecaddedTHttpServerGeneric.AsyncResponsesignature-changedTHttpAsyncServer.AsyncResponsesignature-changedFastCgiParseOutputadded
8
Medium
DuckDB reads and converts files without Pascal row copies
TSqlDBDuckDBConnectionProperties adds FileToDocVariant, ImportFile, ExportSql and ConvertFile for CSV, TSV, JSON, NDJSON, Parquet and XLSX via DuckDB SQL.
New features
mormot.db.sql.duckdb
233dac99+417-1
db: DuckDB file import/export/convert methods
Impact
Delphi/FPC import/export jobs can delegate file work to DuckDB. SQL options and table names remain SQL input; XLSX needs the excel extension and the same-day helper fix must be included.
Worth a look
Public API
TSqlDBDuckDBConnectionProperties.FileToDocVariantaddedTSqlDBDuckDBConnectionProperties.ImportFileaddedTSqlDBDuckDBConnectionProperties.ExportSqladdedTSqlDBDuckDBConnectionProperties.ConvertFileadded
Units
9
Medium
FastCGI routes can target WSGI applications without script files
hpoFastCgiWsgi maps the mount prefix to SCRIPT_NAME and decoded suffix to PATH_INFO, omitting physical script lookup; FastCgiAppendParams gains Wsgi.
New features
mormot.net.proxy
546cfc21+93-49
net: introducing hpoFastCgiWsgi mormot.net.proxy option
Impact
Delphi/FPC proxies can route to virtual WSGI endpoints; existing physical-script FastCGI mapping remains the default.
Worth a look
Public API
hpoFastCgiWsgiaddedFastCgiAppendParamssignature-changed
Units
10
Medium
AES-GCM exposes ciphertext authentication without decryption
TAesGcmEngine.Auth updates ciphertext GHASH without the AES-CTR phase, rejecting invalid input or an already finalized context.
New features
mormot.crypt.core
cfbe3756+14-2
crypt: new TAesGcmEngine.Auth method
Impact
This new Delphi/FPC API supports authentication-only passes, but its initial implementation needs the same-day AVX correction.
Worth a look
Public API
TAesGcmEngine.Authadded
Units
11
Medium
FastCGI builders switch to temporary buffers and string responses
FastCgiAppend helpers use TSynTempAdder; FastCgiParseOutput takes var Output and removes its headers. TFastCgiResponse.Output/Error become strings and RecType becomes an enum.
Performance
mormot.net.proxy
471a5e8b+392-295
net: FastCGI client refactoring from the #785 review
Impact
The new same-day FastCGI API changes signatures before settling; direct low-level callers must adopt final builder and response types.
Worth a look
Public API
FastCgiAppendParamsignature-changedFastCgiAppendStreamsignature-changedFastCgiAppendRequestsignature-changedFastCgiAppendParamssignature-changedFastCgiParseOutputsignature-changedTFastCgiResponse.Outputsignature-changedTFastCgiResponse.Errorsignature-changedTFastCgiHeader.RecTypesignature-changed
Units
12
Medium
ZIP file extraction authenticates through a private partial file
TZipRead writes filename extraction to Dest + '.partial', validates once, then publishes it. Caller-owned streams retain authenticate-first behavior; filename decoding uses CP_437.
Performance
mormot.core.zip
36a54e96+105-60
core: enhanced .zip cryptography
Impact
File extraction avoids an extra ciphertext pass and preserves the old destination on authentication failure. Publication uses delete then rename, not an atomic replacement.
Worth a look
Public API
TZipRead.UnZipbehaviour-changed
Units
13
Medium
AE-3 second-pass decryption reuses verified key state
TZipCrypt.DecryptReset is added. TZipCryptGcm retains the verified header and nonce for one reset; AuthOnly uses TAesGcmEngine.Auth instead of AES-CTR.
Performance
mormot.core.zip+1
266fdcdc+61-33
crypt: optimized TZipCryptGcm
Impact
Delphi/FPC AE-3 stream extraction avoids repeating PBKDF2 and unnecessary decryption; include the later Auth fix in this edition.
Worth a look
Public API
TZipCrypt.DecryptResetadded
14
Medium
Constructors gain distinct C++Builder signatures
TFileStreamEx.CreateWrite adds optional aShareMode defaulting to fmShareRead; CreateFromContentType adds a trailing argument later replaced by aContext.
Compiler & platform
mormot.core.os+1
b73abe19+15-6
core, net: make duplicate constructor signatures reachable from C++Builder
Impact
Existing calls keep their defaults; package/C++Builder users should take the subsequent signature corrections rather than this intermediate state alone.
Worth a look
Public API
TFileStreamEx.CreateWritesignature-changedTHttpMultiPartDecoder.CreateFromContentTypesignature-changed
15
Low
Pointer-based ANSI conversion writes directly to RTL strings
AnsiToStringVar converts pointer/length input with an explicit code page; empty input clears the destination and AnsiToString delegates to it.
New features
mormot.core.unicode
f62bfc90+39-15
core: new AnsiToStringVar() function
Impact
Delphi/FPC code can convert existing ANSI buffers without first constructing a source RawByteString.
Public API
AnsiToStringVaradded
Units
16
Low
IBM code page 437 uses an internal conversion table
CP_437 is defined as 437 and TSynAnsiFixedWidth gains its lookup table; the commit subject's 347 is not the implemented code page.
New features
mormot.core.base+1
d592b726+32-8
core: introducing internal lookup table for code page 347
Impact
Legacy ZIP filename conversion can avoid loading ICU/iconv on POSIX Delphi/FPC targets.
Public API
CP_437added
17
Low
FastCGI response bodies reuse unique string storage
FastCgiParseOutput moves the body over headers and adjusts length when Output has one reference; shared strings retain the safe Delete path.
Performance
mormot.net.proxy
d563d912+15-3
net: make FastCgiParseOutput() allocation free
Impact
The common Delphi/FPC FastCGI response path avoids an extra allocation without changing its public signature.
Units
18
Low
Multipart construction replaces its dummy argument with context
THttpMultiPartDecoder.CreateFromContentType replaces trailing aDummy: integer with optional aContext: PUtf8Char and includes context in its boundary error.
Compiler & platform
mormot.net.client
05b6e4d6+7-9
net: minor refactoring after #796
Impact
Ordinary calls remain compatible; code passing the newly introduced fourth argument must use a pointer context rather than an integer.
Worth a look
Public API
THttpMultiPartDecoder.CreateFromContentTypesignature-changed
Units
19
Low
ZIP encryption tests split into independent jobs
ZIP encryption cases use separate sender indices and filenames for parallel execution; FastCGI assertions use the new string fields.
Tests
1bc774ad+106-86
test: refactoring and parrallelizing
Impact
Only the regression suite changes; application encryption and networking behavior are unaffected.
20
Low
FastCGI regression tests cover virtual WSGI routes
DoHttpFastCgi checks WSGI SCRIPT_NAME/PATH_INFO, POST bodies, decoded paths, NUL rejection and unchanged PHP mapping.
Tests
1633875b+43-2
tests: cover WSGI flavor of FastCgi proxy
Impact
No production backend changes; the new WSGI option gains regression coverage.
21
Low
AE-3 tests validate good data before corrupting the tag
CheckAe3PartialFile moves the valid two-pass stream assertion before tag tampering, then checks preservation of the destination on failure.
Tests
a9071861+14-15
test: fixed CheckAe3PartialFile
Impact
No framework behavior changes; this corrects the order of the regression test.
22
Low
Regression fixtures avoid forcing an online Excel installation
The AE-3 test gains stream checks, and the DuckDB test comments out INSTALL excel so XLSX coverage depends on installed extension availability.
Tests
8a6b5461+16-4
test: fixed latest regression code
Impact
Only tests change; deployed Delphi/FPC applications retain their own extension installation policy.
23
Low
An analytics sample compares database engines on shared datasets
dbbench adds TPC-H and railway queries, preparation scripts and result checking for DuckDB, SQLite3, PostgreSQL and Quack paths.
Docs
4ea9a25d+1943-0
ex: new dbbench comparing DuckDB with SQLite3 and PostgreSQL on analytics
Impact
No production API changes. Published sample timings are not evidence of a universal speedup for existing applications.
24
Low
A sample connects 32-bit clients to a local DuckDB Quack process
duckdbproxy starts the 64-bit DuckDB CLI with TExternalProcess and uses TSqlDBQuackConnectionProperties with a token sent through stdin.
Docs
bea8c9fb+244-0
ex: duckdbproxy - DuckDB from 32-bit clients via a local Quack server
Impact
This is example code, not a new framework proxy layer or a claim that the native DuckDB library became 32-bit.