Skip to content

known_blind_spots: function-like #define aliases are detectable (#3324) - #3325

Merged
squid-protocol merged 1 commit into
mainfrom
docs/3324-macro-aliases-not-blind
Sep 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
docs/3324-macro-aliases-not-blind

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Follow-up to #3314 (merged). Epic #3313 step 2 (#3324) disproved one line of docs/known_blind_spots.md.

  • What changed: "macro wrappers stay blind" is now narrowed to what actually stays blind: object-like redirects that re-point an existing name, like curl 8.17's #define malloc(size) Curl_cmalloc(size). The count stays right there, but which allocator runs is invisible.
  • Why: function-like #define aliases under a new name are detectable. The full-clone census found curl 8.18's curlx_* layer carries 1,625 allocator call sites, and literal plus aliases stays continuous (+4%) across the refactor that dropped the literal count 82%.
  • Also: the planned-design section lists both wrapper kinds (functions and function-like aliases) linked by a closure, and notes CPython's allocator table (_PyMem.malloc(ctx, size)), whose callers the C rule already counts.

Docs only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PderVG28YMuzeSP6XH8yi5

…3313 step 2, #3324)

The full-clone census measured curl 8.18's curlx_* alias layer: 1,625 allocator
call sites, literal + aliases continuous (+4%) across the 8.17 -> 8.18
refactor. Narrow 'stays blind' to object-like redirects of an existing name.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01PderVG28YMuzeSP6XH8yi5
@squid-protocol squid-protocol added the documentation Updates to standard operating procedures, guides, or wiki label Sep 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 63e6669 into main Sep 23, 2026
12 checks passed
@squid-protocol
squid-protocol deleted the docs/3324-macro-aliases-not-blind branch September 23, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Updates to standard operating procedures, guides, or wiki

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant