Skip to content

Stabilize HF/SAM reads and reduce memory pressure (for running alongside qFlipper) - #39

Merged
cindersocket merged 29 commits into
bettse:mainfrom
cindersocket:fix-errors
Jun 18, 2026
Merged

cindersocket merged 29 commits into
bettse:mainfrom
cindersocket:fix-errors

Conversation

@cindersocket

Copy link
Copy Markdown
Collaborator

Summary

  • Fix HF/SAM bridge synchronization so SAM nfcSend traffic is queued instead of dropped before the HF conversation is fully
    active.

  • Surface SAM key probe failures and missing standard PACS key state on the main UI.

  • Improve read failure handling for SAM timeouts, protocol errors, missing keys, and allocation failures.

  • Reduce HF read memory pressure with lazy NFC allocation, inactive-view release, buffer reuse, optimized SAM nfcSend parsing,
    and reduced poller churn.

  • Harden UART/CCID/T=1 paths with immutable TX frames, safer RX compaction, aligned length reads, and calloc overflow
    protection.

  • Add host-tested policy/helpers for HF bridge behavior, read lifecycle, UI memory policy, UART TX/RX, CCID, SNMP key probing,
    and runtime release ordering.

@netlify

netlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

👷 Deploy request for seader pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit e8481de

Comment thread application.fam
],
),
Lib(
name="loclass",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reminds me: loclass was copied from the proxmark3 code, which includes emulation and that required time/space tradeoffs, so there are parts that may be written to use more space, but be faster. I think i've taken a pass at it to try to clean some of that up, but it could be a place to look for further memory reduction.

@cindersocket
cindersocket merged commit 7f5267e into bettse:main Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants