Skip to content

container: Fix FreeList::setWork#254

Open
german77 wants to merge 1 commit intoopen-ead:masterfrom
german77:freeList
Open

container: Fix FreeList::setWork#254
german77 wants to merge 1 commit intoopen-ead:masterfrom
german77:freeList

Conversation

@german77
Copy link
Copy Markdown
Contributor

@german77 german77 commented Mar 24, 2026

A chaotic evil developer decided to use new allocators as some sort of memory getter. Long story sort this code is cursed and doesn't match.

This function doesn't initialize the memory at all. It just builds the linked list. For this reason I decided to use reinterpret cast to transform the work buffer into something we can use. This also fully matches the function.

Ideally the Node should have a variable size. So all operations lineup perfectly but c++ doesn't support dynamic arrays.

Proof of work ->https://decomp.me/scratch/L2Yrq


This change is Reviewable

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