Skip to content

Baseline the exception messages printf prints as has_quotes, now a printf sink - #12

Merged
danog merged 1 commit into
masterfrom
taint-printf-has-quotes
Oct 7, 2026
Merged

danog merged 1 commit into
masterfrom
taint-printf-has-quotes

Conversation

@danog

@danog danog commented Oct 7, 2026

Copy link
Copy Markdown
Member

vimeo/psalm#12210 made printf a sink of the same taint kinds as echo, so it now also takes has_quotes. TextUI/Application.php printf()s the exception message and trace to the terminal, already baselined as TaintedHtml; this adds the matching TaintedTextWithQuotes entries. These are real flows in a CLI tool, the same as the print of the message already baselined. Fixes the vimeo/psalm CircleCI test-with-real-projects failure on master (b3a4cf454).

@danog
danog merged commit 9d817a9 into master Oct 7, 2026
8 of 16 checks 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.

1 participant