OpenSubdiv icon indicating copy to clipboard operation
OpenSubdiv copied to clipboard

Fix address sanitizer warnings with stencil table casting

Open brechtvl opened this issue 1 year ago • 3 comments

For compatibility, StencilTableReal<float> is cast to StencilTable, which has the same data layout but it's not actually an instance of that class. And so using static_cast is not strictly correct. Use reinterpret_cast instead.

brechtvl avatar Dec 13 '24 02:12 brechtvl

Hi Brecht! Would you mind submitting an OpenSubdiv CLA which is distinct from the OpenUSD CLA we already have on file. Thanks!

davidgyu avatar Dec 13 '24 19:12 davidgyu

Ah, I didn't realize. Sent now.

brechtvl avatar Dec 13 '24 19:12 brechtvl

Filed as internal issue #OSD-451

davidgyu avatar Dec 19 '24 20:12 davidgyu