Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naive write_string for OSX #14

Merged
merged 1 commit into from
Apr 7, 2014

Conversation

abesto
Copy link
Contributor

@abesto abesto commented Apr 5, 2014

A naive port (read: copy-paste) of the Linux write_string to OSX. One difference: it uses straight malloc instead of a remote mmap2. I have zero idea how to do that :) I took care to make sure that if malloc returns a pointer to an address outside the range of VIRTADDR, the application won't blow up (didn't test it though).

I've been using this for just a few minutes now, seems to work so far.

Fixes #10

@ysgard
Copy link

ysgard commented Apr 7, 2014

Confirming that abesto's fix works, at least initially. I use custom professions extensively, if I see a problem, I'll report it.

@splintermind
Copy link
Owner

Thanks for the patch, this will make OSX users very happy! Merged!

splintermind added a commit that referenced this pull request Apr 7, 2014
@splintermind splintermind merged commit 6eb9c9c into splintermind:master Apr 7, 2014
@fricy fricy mentioned this pull request Dec 29, 2014
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.

None yet

3 participants