• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/19_truncated_format_string

  1 When processing a truncated format string, uc_printf_common() - which is
  2 used by `sprintf()` and `printf()` in ucode - appended trailing garbage
  3 to the resulting string.
  4 
  5 -- Expect stdout --
  6 [ 37, null ]
  7 -- End --
  8 
  9 -- Testcase --
 10 {%
 11         let s = sprintf("%");
 12         print([ ord(s, 0), ord(s, 1) ], "\n");
 13 %}
 14 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt