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

Default Fedora release for static checks to 37 #5126

Merged
merged 4 commits into from
May 9, 2023

Conversation

vpodzime
Copy link
Contributor

@vpodzime vpodzime commented Dec 12, 2022

A new, recently released version of Fedora with up to date versions of build tools finding new issues in the codebase.

TODO:

  • fix issues found by new Clang
  • fix/suppress issues found by new cppcheck

@vpodzime vpodzime added the WIP Work in Progress label Dec 12, 2022
@vpodzime
Copy link
Contributor Author

Hint: search for error: in https://ci.cfengine.com/job/static-checks/3175/console

Otherwise static checks complain that we might access unitialized
data after a cryptic for-loop that, among a ton of other things,
initializes the array items.
Some parts of our codebase are just a bit too much for cppcheck
and the new versions are brave/naive enough to try to get some
sense of them.
@vpodzime vpodzime force-pushed the master-f37_static_checks branch from 1b70dde to af868f5 Compare April 14, 2023 09:21
1. Do nothing if an empty string is given just like if NULL is
   given.

2. Pass maxlen - 1 as the length of the cipher_list string
   because maxlen is strlen(cipher_list) + 1.

3. Initialize the ciphers and cipher_suites strings before we
   append to them.

These also make static checkers happy about the code.
A new, recently released version of Fedora with up to date
versions of build tools finding new issues in the codebase.
@vpodzime vpodzime force-pushed the master-f37_static_checks branch from af868f5 to a64c45b Compare April 14, 2023 10:57
@vpodzime vpodzime removed the WIP Work in Progress label Apr 14, 2023
@vpodzime
Copy link
Contributor Author

@cf-bottom jenkins, please

@vpodzime vpodzime requested a review from olehermanse April 14, 2023 11:45
@cf-bottom
Copy link

Copy link
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

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

I see nothing nefarious here.

@vpodzime vpodzime merged commit 9a8fc56 into cfengine:master May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants