stop corrupting memory in libpsl-native SetDate#6881
stop corrupting memory in libpsl-native SetDate#6881TravisEz13 merged 5 commits intoPowerShell:masterfrom
Conversation
| return result; | ||
| } | ||
|
|
||
| return settimeofday(&tv, NULL); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Seems the timezone can be a issue too. We should look this in depth. Will push new Issue to discuss better solution.
|
LGTM to get this in Preview3. |
PR Summary
stop corrupting memory in libpsl-native SetDate
Addresses #6872 - the first step
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests