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 some Coverity advisories #1913

Merged
merged 1 commit into from
Oct 27, 2019
Merged

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Oct 26, 2019

No description provided.

@slaff slaff added this to the 4.0.0 milestone Oct 26, 2019
@@ -48,6 +48,7 @@ WebsocketConnection::WebsocketConnection(HttpConnection* connection, bool isClie
{
setConnection(connection, isClientConnection);

memset(&parser, 0, sizeof(parser));
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better to move memset inside of ws_parser_init.

@mikee47 mikee47 force-pushed the fix/coverity-warnings branch from 950c7c6 to cd925a6 Compare October 26, 2019 18:26
@mikee47 mikee47 force-pushed the fix/coverity-warnings branch from cd925a6 to 71d65cd Compare October 26, 2019 20:36
@slaff slaff merged commit 40168cb into SmingHub:develop Oct 27, 2019
mikee47 added a commit to mikee47/Sming that referenced this pull request Nov 3, 2019
slaff pushed a commit that referenced this pull request Nov 3, 2019
* Fix strncpy

* Fix `getHostAppDir()`, broken in #1913.
@slaff slaff removed the 3 - Review label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants