Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Nov 20, 2017

fixes #4975
fix expected vs actual for easier troubleshooting

@TravisEz13 TravisEz13 changed the base branch from master to 6.0.0 November 20, 2017 22:40
@TravisEz13 TravisEz13 added this to the 6.0.0-GA milestone Nov 20, 2017
@TravisEz13 TravisEz13 changed the title Fix str len Replace strlen with strnlen in native code Nov 20, 2017
@TravisEz13 TravisEz13 added the Compliance Related to compliance requirements label Nov 20, 2017
Copy link
Member

Choose a reason for hiding this comment

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

Can you please explain a bit about why you made the changes to EXPECT_EQ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The pattern for EXPECT_EQ is EXPECT_EQ(<expected>,<actual>) when you call it with the parameters reverse it makes the error very confusing.

@daxian-dbw
Copy link
Member

daxian-dbw commented Nov 20, 2017

Again, I think we agreed to submit PR targeting master branch, and then cherrypick commits to 6.0.0. Has that process changed?

@TravisEz13 TravisEz13 changed the base branch from 6.0.0 to master November 20, 2017 23:54
@daxian-dbw
Copy link
Member

Note that the libpsl nuget package needs to be updated once this change is merged.

@TravisEz13 TravisEz13 merged commit 9559694 into PowerShell:master Nov 22, 2017
@TravisEz13 TravisEz13 deleted the fix_StrLen branch November 22, 2017 00:20
TravisEz13 added a commit to TravisEz13/PowerShell that referenced this pull request Nov 29, 2017
* fix expected vs actual for easier troubleshooting
* replace strlen calls with strnlen
TravisEz13 added a commit that referenced this pull request Nov 29, 2017
* fix expected vs actual for easier troubleshooting
* replace strlen calls with strnlen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compliance Related to compliance requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove use for strlen from native code

2 participants