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

Make lowerPrivileges @safe #1807

Merged
merged 1 commit into from Jul 2, 2017

Conversation

Projects
None yet
2 participants
@wilzbach
Contributor

wilzbach commented Jul 1, 2017

A first step towards making runApplication @safe.

Example source code for getgrid:

https://github.com/bminor/glibc/blob/73dfd088936b9237599e4ab737c7ae2ea7d710e1/grp/getgrgid_r.c
https://github.com/bminor/glibc/blob/master/nss/getXXbyYY_r.c

tl;dr: It's allocated on the stack and we just check whether the returned pointer is valid.
The other libc functions are:

@s-ludwig s-ludwig merged commit a7b7f53 into vibe-d:master Jul 2, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@wilzbach wilzbach deleted the wilzbach:safe-lowering branch Jul 2, 2017

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