mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
print_hex_mem_dump was calling `sprintf` with source and destination buffers overlapping, which is explicitly forbidden. Rewrite the function to use C++ stringstreams instead. This commit only affects the error path and does not change the printed output. Error logs before and after this commit should not differ. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>