Skip to content

ram-tui v1.0.3 — Security Hardening, Fail-Closed Installers & Visual Polish

Choose a tag to compare

@BlackFeather-git BlackFeather-git released this 03 Sep 18:59
· 3 commits to main since this release

🚀 RAM-TUI v1.0.3 — Maintenance & Hardening Release

This maintenance release hardens terminal escape safety, upgrades bootstrap installers to fail-closed cryptographic verification, refines Windows swap telemetry, optimizes the render loop, and resolves visual border alignment in the Theme Selector modal.


🛡️ Security & Hardening Fixes

  1. Sanitized Hostname Against Terminal Escape Injection:

    • Consolidated system hostname extraction into core_render::format::get_hostname().
    • The live TUI header now sanitizes raw HOSTNAME / COMPUTERNAME environment values through sanitize_text(), stripping ANSI escape sequences, control bytes, and Unicode directional overrides.
    • Added unit test test_get_hostname_sanitized.
  2. Strict Fail-Closed Installer Checksum Verification:

    • Updated both install.sh and install.ps1 to be strictly fail-closed: if the release .sha256 digest cannot be retrieved, or hashing utilities are absent, or checksum verification fails, the installer aborts immediately with an error and cleans up the binary instead of continuing unverified.
  3. Input Sanitization on --filter CLI Argument:

    • Enforced the printable ASCII allowlist (' '..='~') on the startup --filter flag, matching the live interactive search box and preventing terminal escape injection through wrapper scripts.

🐛 Bug Fixes & Architectural Enhancements

  1. Theme Selector Modal Border Alignment:

    • Fixed a visual glitch where right borders (│) on theme selection rows were shifted by 8 characters due to static space counts.
    • All rows now dynamically calculate exact column width via visible_cell_width() and pad to the 38-column box width.
    • Centered and dynamically padded the modal footer key navigation legend.
    • Added regression test test_theme_modal_box_alignment verifying box width consistency across all 13 themes.
  2. Real Windows Pagefile Swap Telemetry:

    • Replaced hardcoded swap_used = 0 on Windows with accurate committed memory differential commit_as.saturating_sub(total).min(swap_total).
  3. Render Loop Performance & Code Deduplication:

    • Cached TrueColor Palette state across frames, eliminating ~10-20 heap string allocations per frame on unchanged ticks.
    • Reused FrameBuffer::prev vector capacity with clear() + extend_from_slice() instead of cloning every line.
    • Unified tick-loop and post-keypress rendering call sites into a single macro.
    • Wired FrameBuffer::invalidate() to trigger on terminal window resize and display mode switches.

📦 Quick Install / Upgrade

Linux & macOS

curl -fsSL https://raw.githubusercontent.com/BlackFeather-git/ram-tui/main/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/BlackFeather-git/ram-tui/main/install.ps1 | iex