Skip to content

delta: harden external command invocations#21104

Closed
vszakats wants to merge 33 commits into
curl:masterfrom
vszakats:deltacmd
Closed

delta: harden external command invocations#21104
vszakats wants to merge 33 commits into
curl:masterfrom
vszakats:deltacmd

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Mar 26, 2026

By moving operations Perl-native (from shell and external commands), and
passing arguments individually to external commands.

Pointed out by Codex Security


https://github.com/curl/curl/pull/21104/files?w=1

@vszakats vszakats changed the title delta: safe external command invocations delta: harden external command invocations Mar 26, 2026
@vszakats vszakats requested a review from Copilot April 1, 2026 18:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens scripts/delta by reducing shell/pipeline usage and invoking external commands with argument lists to avoid shell interpretation and injection risks.

Changes:

  • Introduces a cmd() helper based on IPC::Open3 to run commands without going through the shell.
  • Replaces several backtick + shell-pipe constructs with Perl-native parsing/counting and safer git invocations.
  • Adds tagstamp() to parse tag timestamps from git for-each-ref output without grep|cut.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/delta Outdated
Comment thread scripts/delta
Comment thread scripts/delta Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/delta
Comment thread scripts/delta
Comment thread scripts/delta
Comment thread scripts/delta
@vszakats vszakats closed this in 4d82423 May 11, 2026
@vszakats vszakats deleted the deltacmd branch May 11, 2026 20:06
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
By moving operations Perl-native (from shell and external commands), and
passing arguments individually to external commands.

Pointed out by Codex Security

Closes curl#21104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants