Fix some Coverity and SonarCube bugs
These commits should fix some bugs reported by Coverity and SonarCube
GitLab upgrade completed. Current version is 17.11.1. We now benefit from the features of the release 17.11.
These commits should fix some bugs reported by Coverity and SonarCube