]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
MD3: fix misaligned memory access
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 26 Jan 2024 06:58:50 +0000 (16:58 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 29 Jan 2024 15:27:11 +0000 (01:27 +1000)
commite405cdb40b32d9a2d004314cc2699ceac892ee44
tree28b018454d9a2222e5d0cd4e35bc005567316baa
parent1ce1b1d44a74a5e7e2c1e45f858db4bb3a9ee706
MD3: fix misaligned memory access

The memory subdivision was ordered such that this format likely had no
issues on a 32-bit machine but on 64-bit the alignment requirement of
texture_t increases to 8 bytes, invoking undefined behaviour.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
model_alias.c