Repository navigation
v4.0.3
atom 4.0.3 is a patch release against 4.0.2, prepared together with chen 4.0.2, which it uses.
The memory-safety command reads the allocation styles that large C projects use instead of plain malloc and free (atom#424, chen#340): scope cleanup through the GCC cleanup attribute, regions and pools released together, allocators that hand out a block past a size header, and reference counts. Each style is read from evidence (declared attributes, method bodies and library profiles), never from a function's name. memory-safety gains --memory-api-profiles <auto|none|name,name>. auto selects, per translation unit, the profiles for glib, the Linux kernel, PostgreSQL, APR, nginx, CPython and PHP whose headers the unit includes; none turns them off; a comma list applies the named profiles. The command prints the profiles it followed with a file count for each, and a run with --reuse-atom that asks for other profiles or another --memory-api-config now says on stderr that the reused atom keeps the ones it was built with. docs/docs/cli.md describes each style with a bad and a correct example, the profile table, and how to declare an in-house region, release, acquire, retains, steal or cleanup function. On the memsafe corpus at medium confidence, recall rose from 61.64% to 68.49% and precision from 89.11% to 90.91% with the default front end, and no finding was added on any of the eight real-project precision arms; the full table is on chen#340.
With chen 4.0.2, flow summaries no longer hang on C projects that define several static functions with the same name (chen#336): memory-safety --with-data-deps on FFmpeg's libavformat spent nine hours in that stage with 4.0.2 and now takes 1.3 seconds. The EDG front end reads C++26 expansion statements (template for) from edga 0.3.0, and -std=c++26 selects EDG's C++26 mode.
On Windows, atom reachables with -Dchen.dataflow.parallel=true could exit with 0xC0000005 (atom#419). The native image now commits 512 KB of each thread's stack instead of 4 KB (atom#421), and chen 4.0.2 removes the shared-map statistics that sent deep stacks into virtual-thread continuations (chen#339).
The changes were written by AI agents and their pull requests reviewed by further AI agents.
Credits
Reported-by: August Johansson 148627186+webdevred@users.noreply.github.com
Link: #419
Helped-by: August Johansson 148627186+webdevred@users.noreply.github.com
Link: oracle/graal#12764 (comment)
Full Changelog: v4.0.2...v4.0.3