Skip to content

Commit 9081863

Browse files
committed
fix(infra): an example URL in a comment uses the audit's placeholder host
security-static allows URL literals in C sources only on its allow-list; a comment continuation line is scanned like code, so the curl example in pass_shell.c named a real host. It now uses the placeholder https://host/... that scripts/security-audit.sh accepts. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent bff5e01 commit 9081863

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/pipeline/pass_shell.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ static const char *sh_url_skip_expansion(const char *p) {
21012101
}
21022102

21032103
/* An http(s) URL word the script states with a literal host but variable
2104-
* parts after it ("https://github.com/x/releases/download/${VER}/x.tgz"),
2104+
* parts after it ("https://host/releases/download/${VER}/x.tgz"),
21052105
* from its source text as the shell reads the word -- up to an unquoted
21062106
* blank or operator, as tree-sitter-bash may split an unquoted word with
21072107
* expansions into several arguments: quotes dropped, each expansion of the

0 commit comments

Comments
 (0)