https://github.com/halide/Halide
Revision 4f702718cbcef84664d56716dac13892070298d3 authored by Steven Johnson on 09 November 2021, 22:51:05 UTC, committed by GitHub on 09 November 2021, 22:51:05 UTC
Found while debugging crashes with performance_async_gpu for OpenGLCompute: the 'if' tree wasn't robust enough for malformed buffers being passed, and could attempt to deref and use a null src->device_interface or dst->device_interface in some cases.

This patch just improves this function to return an error in these cases (rather than crashing); the fact that we are getting malformed buffers passed to us is likely a separate bug.
1 parent b189722
History
Tip revision: 4f702718cbcef84664d56716dac13892070298d3 authored by Steven Johnson on 09 November 2021, 22:51:05 UTC
Add defensive checks to halide_buffer_copy_already_locked (#6401)
Tip revision: 4f70271

back to top