Skip to content

protect DF pooled objects from being deleted#5812

Merged
ab9rf merged 2 commits into
DFHack:developfrom
ab9rf:protected_pool_delete
May 21, 2026
Merged

protect DF pooled objects from being deleted#5812
ab9rf merged 2 commits into
DFHack:developfrom
ab9rf:protected_pool_delete

Conversation

@ab9rf
Copy link
Copy Markdown
Member

@ab9rf ab9rf commented May 21, 2026

This prevents heap corruption in the event that a Lua script attempts to delete a DF object that is pool-allocated. We currently cannot delete pool-allocated DF objects as Bay12 doesn't expose an API for doing so.

@ab9rf ab9rf merged commit 179a58b into DFHack:develop May 21, 2026
14 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.

1 participant