Skip to content

Conversation

@dmk-rib
Copy link
Contributor

@dmk-rib dmk-rib commented Dec 5, 2025

Fixed unsafe deletion of heap-allocated arrays. The destructor in IfcFileStream previously used delete _buffer; which is incorrect for arrays and can lead to undefined behaviour. It now checks for nullptr.

The functions GetVertexData() and GetIndexData() previously returned uint32_t but returned pointer-sized integer values (addresses of vector buffers). These were changed to uintptr_t to safely represent pointer-sized integers on all platforms (including 64-bit/WASM pointers)

Fixed unsafe deletion of heap-allocated arrays. The destructor in IfcFileStream previously used delete _buffer; which is incorrect for arrays and can lead to undefined behaviour. It now checks for nullptr.

The functions GetVertexData() and GetIndexData() previously returned uint32_t but returned pointer-sized integer values (addresses of vector buffers). These were changed to uintptr_t to safely represent pointer-sized integers on all platforms (including 64-bit/WASM pointers)
@beachtom beachtom merged commit 8f6b315 into ThatOpen:main Dec 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants