Skip to content

Commit 00206da

Browse files
committed
Zero init SIMD overspill
Ensures that SIMD overspill is ZI for decompression, in order to keep UBSAN happy. In reality the UB SIMD lanes are never actually written back to memory, but this keeps UBSAN useful as a tool.
1 parent dc94e8c commit 00206da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/astcenc_entry.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ astcenc_error astcenc_decompress_image(
11671167
return ASTCENC_ERR_OUT_OF_MEM;
11681168
}
11691169

1170-
image_block blk;
1170+
image_block blk {};
11711171
blk.texel_count = static_cast<uint8_t>(block_x * block_y * block_z);
11721172

11731173
// Decode mode inferred from the output data type

0 commit comments

Comments
 (0)