RDKEMW-4433: local server build option#57
Open
dwolaver wants to merge 38 commits into
Open
Conversation
…b-rdkcentral:rdkcentral/control into feature/RDKEMW-4433_local_server_build_option
Contributor
Contributor
Contributor
Contributor
|
b'## WARNING: A Blackduck scan failure has been waived A prior failure has been upvoted
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.
Comments suppressed due to low confidence (1)
src/server/ctrlms_ws.cpp:179
- If listener creation fails after the temp TLS cert/key file was generated, the code breaks out without unlinking the temp file. This can leave sensitive cert/key material on disk in /tmp. Make sure to unlink the temp file in this failure path (and any other early-exit paths) when
g_ctrlms_ws.cert_validis true.
if(!nopoll_conn_is_ok(g_ctrlms_ws.state.nopoll_conn)) {
XLOGD_ERROR("Listener connection IPv6 NOT ok");
nopoll_ctx_unref(g_ctrlms_ws.nopoll_ctx);
g_ctrlms_ws.nopoll_ctx = NULL;
nopoll_conn_opts_free(g_ctrlms_ws.opts);
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/server/ctrlms_ws.cpp:231
- Shutdown cleanup calls
dlclose(app_handle)beforedelete app_interface. Ifapp_interfacewas created by the plugin, its destructor may be in the unloaded module, makingdeleteundefined behavior. Delete/free the interface object first, thendlclose()the plugin handle.
if(g_ctrlms_ws.app_handle != NULL) {
dlclose(g_ctrlms_ws.app_handle);
g_ctrlms_ws.app_handle = NULL;
}
if(g_ctrlms_ws.app_interface != NULL) {
delete g_ctrlms_ws.app_interface;
g_ctrlms_ws.app_interface = NULL;
}
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/server/ctrlms_ws.cpp:558
- The stub virtual methods leave parameters unused (
payloadandjson_obj). With-Wall -Werrorenabled forcontrolServer, this is likely to produce-Wunused-parameterand break the build. Please explicitly mark these parameters unused (or remove the parameter names in the definitions) to keep the stub compile-clean.
bool ctrlms_app_interface_t::ws_receive_audio(const unsigned char *payload, int payload_size) {
XLOGD_INFO("STUB: audio received size <%d>", payload_size);
return(false);
};
bool ctrlms_app_interface_t::ws_receive_json(const json_t *json_obj) {
XLOGD_INFO("STUB: json object received");
return(false);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide an option to build/install a local websocket server.