Skip to content

tests/shader-runner: Avoid possible buffer overflow.

swprintf() expects the length of the buffer in WCHARs instead of bytes, so ARRAY_SIZE() is used instead of sizeof().

This caused almost all tests to terminate abruptly with the following message, in my machine:

*** buffer overflow detected ***: terminated

Merge request reports

Loading