Published April 1, 2026
| Version v0.7.0
Software
Open
alternative-intelligence-cp/aria: v0.7.0 — Wild Memory Improvements
Description
Wild Memory Improvements
Per-Allocation Size Tracking
- Hidden
WildHeader(magic + alloc_size) before each allocation aria_alloc_get_size()reads the allocation size from the header- Accurate
aria_free/aria_reallocsize accounting — no more imprecise stats
Guard Pages (--guard-pages)
mmap(PROT_NONE)sentinel pages placed before and after wild allocations- Buffer overflows/underflows trigger SIGSEGV immediately
- Magic LSB distinguishes guard-page vs malloc mode at free time
- Linux only
Wild Stats Dashboard (--wild-stats)
- Formatted statistics box printed at program exit
- Shows current/peak usage, active allocs, total frees, leak count, WildX stats, quota
- Uses
__attribute__((destructor))for reliable atexit printing - Injected into
main()via LLVM IR during compilation
Bug Fix
- Fixed
HEADER_MAGICLSB bug: magic0xA01A...BEEFhad LSB=1, which broke the guard-page LSB masking inaria_freevalidation (frees were silently skipped). Changed to0xA01A707000BEE0(LSB=0).
Tests
- New
tests/wild_stress_v070.aria: 9 tests (rapid alloc/free, concurrent, interleaved, realloc grow/shrink, large/small allocations,aria_alloc_get_size) - All 6 existing test suites pass (regression clean)
Notes
- Arena, Pool, and Slab allocators already existed from prior work — not new in this release
- 582 insertions, 67 deletions across 5 files
Files
alternative-intelligence-cp/aria-v0.7.0.zip
Files
(14.9 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:a986dbf4b42cfdaba73aa1e707b1644a
|
14.9 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/alternative-intelligence-cp/aria/tree/v0.7.0 (URL)
Software
- Repository URL
- https://github.com/alternative-intelligence-cp/aria