From 3ff3616ef4d4ffac2b693c31967e464ff60f5c55 Mon Sep 17 00:00:00 2001 From: orklah Date: Sun, 7 Nov 2021 09:25:27 +0100 Subject: [PATCH] add stub for taint detection on vprintf --- stubs/CoreGenericFunctions.phpstub | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index e8b3026cf..b3b00a169 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -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 *