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

fix bugs in emscripten socket syscalls #484

Merged
merged 2 commits into from
Jun 6, 2019
Merged

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Jun 6, 2019

resolves #482
This PR fixes:

  • incorrect argument order
    • which cascaded in to a casting issue
    • which cascaded in to misaligning the arguments of a function
    • which cascaded in to attempting to access an OOB pointer
  • sets fd limit to 1024, rather than emscripten's 64
  • updates prlimit64 to return the correct result for RLIMIT_NOFILE
  • fixes bug in prlimit64 due to a mistransaltion of the emscripten javascript

Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jun 6, 2019
484: fix bugs in emscripten socket syscalls r=MarkMcCaskey a=MarkMcCaskey

resolves #482 
This PR fixes:
- incorrect argument order
  - which cascaded in to a casting issue 
  - which cascaded in to misaligning the arguments of a function
  - which cascaded in to attempting to access an OOB pointer
- sets fd limit to 1024, rather than emscripten's 64
- updates `prlimit64` to return the correct result for `RLIMIT_NOFILE`
- fixes bug in `prlimit64` due to a mistransaltion of the emscripten javascript

Co-authored-by: Mark McCaskey <mark@wasmer.io>
@bors
Copy link
Contributor

bors bot commented Jun 6, 2019

@bors bors bot merged commit 6f633ce into master Jun 6, 2019
@bors bors bot deleted the fix/bugs-in-emscripten-sockets branch June 6, 2019 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 lib-emscripten About wasmer-emscripten
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update limit on file descriptors in emscripten select syscall
2 participants