Skip to content

more proper dbstring memory management#506

Open
fluxide wants to merge 2 commits intoEasyRPG:masterfrom
fluxide:master
Open

more proper dbstring memory management#506
fluxide wants to merge 2 commits intoEasyRPG:masterfrom
fluxide:master

Conversation

@fluxide
Copy link

@fluxide fluxide commented Feb 13, 2026

on windows, i was getting assertion errors from dbarrayalloc.h months ago when it was struggling with memory management. i have identified that empty_buf() is supposed to return two consequent memory addresses that are supposed to mimick a dbstring structure; however, the existing method seemed to be fragile on windows, so i cleaned it up a little bit. it doesnt seem to show undefined behavior anymore.

fluxide added 2 commits August 5, 2025 02:37
empty_buf function returns a char* now, and the free function in dbarray uses the get_size_ptr function to detect uninitialized void* objects
-identified the problem with heap allocation in dbstrings
-empty_buf() now returns 2 bytes, properly mimicking the void* structure of a dbstring.
@fluxide
Copy link
Author

fluxide commented Feb 13, 2026

i made one of my commits to my branch 3 months ago. admittedly i dont remember what i changed but if it looks weird feel free to correct anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant