Skip to content

Reject symlink build outputs and reduce compiler allocations - #380

Merged
aspizu merged 5 commits into
mainfrom
apz/output-safety-compiler-allocations
Sep 20, 2026
Merged

aspizu merged 5 commits into
mainfrom
apz/output-safety-compiler-allocations

Conversation

@aspizu

@aspizu aspizu commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Build output creation now rejects final-component symlinks before truncation, using no-follow flags on Unix and handle-based inspection on Windows. This prevents overwriting a symlink target while preserving creation and replacement of regular output files; parent-directory symlinks remain outside this protection.

Compiler allocation reductions borrow existing boolean conditions, serialize block field strings directly, and append keyword/default arguments to the existing positional argument vector.

Validation: cargo check --locked and git diff --check origin/main...HEAD pass. Windows behavior and end-to-end compilation were not tested.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-20T17:55:52.537050Z 61eba01 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61eba01a88

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/frontend/build.rs Outdated
@aspizu
aspizu merged commit 323a0fc into main Sep 20, 2026
1 check passed
@aspizu
aspizu deleted the apz/output-safety-compiler-allocations branch September 20, 2026 18:42
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.

1 participant