summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/04_bugs/19_truncated_format_string
blob: 8ddd0a36208dfe1e165b4f8cb2cf7ad509e661b9 (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, 1), "\n");
%}
-- End --