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

stop corrupting memory in libpsl-native SetDate #6881

Merged
merged 5 commits into from
May 18, 2018

Conversation

TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented May 16, 2018

PR Summary

stop corrupting memory in libpsl-native SetDate
Addresses #6872 - the first step

PR Checklist

return result;
}

return settimeofday(&tv, NULL);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we use settimeofday if we don't use second parameter (timezone)?
Could we use stime? In the case we have to adjust only one parameter time_t.

Second question do this parameter adjustements work correctly for ARM reverse byte order?

Copy link
Member Author

Choose a reason for hiding this comment

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

There are known issues there this isn't working on ARM. @dantraMSFT mentioned this to me.

Feel free to file an issue to switch to stime, although the better fix is probably to include the timezone. This fix is scoped to stop corrupting memory.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems the timezone can be a issue too. We should look this in depth. Will push new Issue to discuss better solution.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Tracking issue #6962

@iSazonov
Copy link
Collaborator

LGTM to get this in Preview3.

@TravisEz13 TravisEz13 merged commit b43d3e5 into PowerShell:master May 18, 2018
@TravisEz13 TravisEz13 deleted the fix_psl_native branch May 18, 2018 19:56
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