Skip to content

Commit

Permalink
Merge pull request #6847 from orklah/vprintf
Browse files Browse the repository at this point in the history
add stub for taint detection on vprintf
  • Loading branch information
orklah authored Nov 7, 2021
2 parents 4e6cb75 + 3ff3616 commit a2d6861
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,13 @@ function wordwrap(string $string, int $width = 75, string $break = "\n", bool $c
*/
function printf(string $format, ...$values) : string {}

/**
* @psalm-taint-specialize
* @psalm-taint-sink html $format
* @psalm-taint-sink html $values
*/
function vprintf(string $format, array $values) : int {}

/**
* @psalm-pure
*
Expand Down

0 comments on commit a2d6861

Please sign in to comment.