Skip to content

Fix memory corruption bug.#26

Merged
mach-kernel merged 1 commit intomach-kernel:masterfrom
beevik:master
Nov 18, 2019
Merged

Fix memory corruption bug.#26
mach-kernel merged 1 commit intomach-kernel:masterfrom
beevik:master

Conversation

@beevik
Copy link
Copy Markdown
Contributor

@beevik beevik commented Aug 18, 2019

The posix os_GetFolderFiles had a memory corruption bug where it
was writing past the end of a heap-allocated array.

(By the way, the same function has memory leaks; none of the memory that is allocated for paths is free'd.)

The posix os_GetFolderFiles had a memory corruption bug where it
was writing past the end of a heap-allocated array.
@mach-kernel
Copy link
Copy Markdown
Owner

Hi, I'll try to merge this + do a pass of free when I get some spare time. It will probably go out with the case bit feature request that was recently opened.

Thanks much!

@ivanizag
Copy link
Copy Markdown

This bug was silently breaking my Total Replay builds. I ended up with the same fix. It would be great to have this PR merged.
Thanks!

@mach-kernel mach-kernel merged commit 7b4fc38 into mach-kernel:master Nov 18, 2019
@mach-kernel
Copy link
Copy Markdown
Owner

Sincere apologies for the delay, free time has been extremely scarce on my end. I have a lot of things to push through for cadius -- hopefully with the holidays approaching I can get case bits out and break ground on direct block device support.

Thanks much for following up!!!

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.

3 participants