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

Fix new Coverity warnings #1175

Merged
merged 6 commits into from
Aug 2, 2022
Merged

Conversation

lmoureaux
Copy link
Contributor

A handful of Coverity warnings popped up in the last month. This should clear them all.

Special thanks to Synopsis for 55336e7: The client was crashing when Ctrl+Alt+clicking outside of the map (this shortcut is bound to the "create link" action).

Coverity CID 1435592.
Coverity CID 1435613.
Coverity CID 1435813.
This fixes commit 1294672.

Coverity CID 1435782.
The function city_production_model::setData was doing nothing and always
returning false, just like in the base class. Remove it.

Coverity CID 1435807.
If someone wants to require stupid password rules, they should do it using lua
and not by building a special server version.

Coverity CID 1435808.
The client was crashing when Ctrl+Alt+clicking outside of the map (this
shortcut is bound to the "create link" action). Check that we're within bounds
before attempting anything.

Coverity CID 1490725.
@lmoureaux lmoureaux added bug Something isn't working gui This issue requires changes to the user interface server This issue requires changes to the server tools Issues related to mp, ruledit, etc along with CI and build tools. labels Jul 31, 2022
@lmoureaux lmoureaux requested a review from psampathkumar July 31, 2022 00:26
@lmoureaux lmoureaux linked an issue Jul 31, 2022 that may be closed by this pull request
@psampathkumar
Copy link
Contributor

The fails dont look like garbage, WA and Win doesnt seem to like the std::array conversion.

Turn init_units into an std::array because it's inherently better.

Coverity CID 1490804.
@psampathkumar
Copy link
Contributor

All the checks have passed now. Merging.

@psampathkumar psampathkumar merged commit 1dabed5 into longturn:master Aug 2, 2022
@psampathkumar psampathkumar deleted the bugfix/coverity branch August 2, 2022 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui This issue requires changes to the user interface server This issue requires changes to the server tools Issues related to mp, ruledit, etc along with CI and build tools.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion pnation->player == nullptr failed
2 participants