Fix bad memory access in ReplaceAll

This commit is contained in:
Krzosa Karol
2026-03-05 16:55:58 +01:00
parent 52c55e27d9
commit 9b2c8626d4
4 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
/*
- [x] ReplaceAll - heap-use-after-free address, how to debug? I think would be nice to iterate all buffer ids and their addresses along with the state
- [x] BRO, the caret teleports on linux when I press the arrow for too long
- [ ] Report SDL newest vs SDL previous version on wayland
@@ -900,8 +902,8 @@ int main(int argc, char **argv, char **envp)
char **argv = __argv;
AttachConsole(ATTACH_PARENT_PROCESS);
#endif
InitScratch();
InitOS(ReportErrorf);
InitScratch();
ProjectFolder = GetWorkingDir(Perm);
HomeFolder = SDL_GetUserFolder(SDL_FOLDER_HOME);