-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Replace strlen with strnlen in native code #5510
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
Conversation
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
Again, I think we agreed to submit PR targeting master branch, and then cherrypick commits to 6.0.0. Has that process changed? |
df23197 to
7816ec2
Compare
|
Note that the |
7816ec2 to
80ba61e
Compare
* fix expected vs actual for easier troubleshooting * replace strlen calls with strnlen
* fix expected vs actual for easier troubleshooting * replace strlen calls with strnlen
fixes #4975
fix expected vs actual for easier troubleshooting