Skip to content

Fix UB in setZero

Reference issue

Fixes #2876 (closed)

What does this implement/fix?

The memset specialization in setZero is not checking if the destination array is null. Zero-sized blocks intentionally return nullptr, even if the underlying expression is not null.

Additional information

Edited by Charles Schlosser

Merge request reports

Loading