Before calling tgsi_text_translate, check the last 4 bytes of shader contains the terminating character. TEST=WebGLAquarium [airlied: unfortunately some mesa userspace sends a packet with 0 shader in it, this should be illegal but we can't go trapping it now. just include the check for termination] Reviewed-by: Dave Airlie <airlied@redhat.com>macos/master
parent
76670ade68
commit
a5bfadaab5
Loading…
Reference in new issue