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

x509 parser cleanup #3582

Closed
wants to merge 3 commits into from
Closed

x509 parser cleanup #3582

wants to merge 3 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Feb 18, 2019

No description provided.

- rename 'n' to buflen in functions, and use size_t for them. Don't pass
  in negative buffer lengths.

- move most function comments to above the function starts like we use
  to

- remove several unnecessary typecasts (especially of NULL)
Copy link
Contributor

@monnerat monnerat left a comment

Choose a reason for hiding this comment

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

Except the remark at line 439 that requests a fix, I don't see any other potential problems.
Casted NULLs were coded in old days when the OS400 compiler didn't like implicit type conversion of NULL in some cases. I hope they fixed it nowadays.
Scan-build seems happy with it: now let's see what Coverity says !

@bagder
Copy link
Member Author

bagder commented Feb 19, 2019

The travis coverage job fails but I can't understand why, nor do I think it is related to this change.

@monnerat
Copy link
Contributor

The travis coverage job fails but I can't understand why, nor do I think it is related to this change.

Agreed, since I have the same problem on #3583. I don't understand the failure reason either.

@bagder bagder closed this in d8b0318 Feb 19, 2019
@bagder bagder deleted the bagder/x509-cleanup branch February 19, 2019 15:04
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants