summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/99_bugs/19_truncated_format_string
blob: ead0fdbe2de9a86100a60da1b306ea80b808f82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
When processing a truncated format string, uc_printf_common() - which is
used by `sprintf()` and `printf()` in ucode - appended trailing garbage
to the resulting string.

-- Expect stdout --
[ 37, null ]
-- End --

-- Testcase --
{%
	let s = sprintf("%");
	print([ ord(s, 0), ord(s, 1) ], "\n");
%}
-- End --