Skip to content

Fix UB in resize-bilinear-nhwc.c: it's technically UB to dereference an unaligned pointer, and the indirect_input field was only guaranteed to be 4-aligned, not 8-aligned on 64-bit targets. In practice, this will only fail under UBSAN or similar tools, but aligning the indirect_input field properly is an easy way to avoid spurious failures under these tools. #69

Fix UB in resize-bilinear-nhwc.c: it's technically UB to dereference an unaligned pointer, and the indirect_input field was only guaranteed to be 4-aligned, not 8-aligned on 64-bit targets. In practice, this will only fail under UBSAN or similar tools, but aligning the indirect_input field properly is an easy way to avoid spurious failures under these tools.

Fix UB in resize-bilinear-nhwc.c: it's technically UB to dereference an unaligned pointer, and the indirect_input field was only guaranteed to be 4-aligned, not 8-aligned on 64-bit targets. In practice, this will only fail under UBSAN or similar tools, but aligning the indirect_input field properly is an easy way to avoid spurious failures under these tools. #69