Skip to content

RDKEMW-21898 : xr-voice-sdk - uninitialized scalar variable - #80

Merged
dwolaver merged 6 commits into
developfrom
feature/RDKEMW-21898_uninitialized_scalar_variable
Jul 23, 2026
Merged

RDKEMW-21898 : xr-voice-sdk - uninitialized scalar variable#80
dwolaver merged 6 commits into
developfrom
feature/RDKEMW-21898_uninitialized_scalar_variable

Conversation

@dwolaver

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses uninitialized stack-variable warnings in the xr-voice-sdk C codebase (speech router + audio layers) by explicitly zero-initializing several structs, and adds a couple of defensive cleanup/error-handling improvements.

Changes:

  • Zero-initialize multiple stack-allocated structs to avoid use of indeterminate padding/fields.
  • Remove an unused/non-referenced logging helper from xraudio_utils.c.
  • Improve failure-path handling in plugin/object creation and tighten capture file permissions.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/xr-speech-router/xrsr.c Zero-initialize xraudio_input_format_t before populating fields for session requests.
src/xr-speech-router/xrsr_xraudio.c Zero-initialize message/format/result structs; refactor keyword-result local variable initialization.
src/xr-audio/xraudio_utils.c Remove xraudio_get_log_time (appears unused).
src/xr-audio/xraudio_thread.c Zero-initialize xraudio_input_format_t used for capture format setup.
src/xr-audio/xraudio_private.h Tighten capture file mode to user-only read/write.
src/xr-audio/xraudio_output.c Add NULL checks and cleanup when EOS/OVC plugin object creation fails.
src/vsdk.c Add dlclose(handle) on required HAL dlsym failure path.

Comment thread src/xr-audio/xraudio_output.c
Comment thread src/xr-audio/xraudio_output.c
Comment thread src/vsdk.c

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread src/xr-audio/xraudio_private.h
@dwolaver
dwolaver marked this pull request as ready for review July 17, 2026 19:01
@dwolaver
dwolaver requested a review from a team as a code owner July 17, 2026 19:01

@egalla204 egalla204 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

approved for test

Copilot AI review requested due to automatic review settings July 23, 2026 18:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@dwolaver
dwolaver merged commit cda8655 into develop Jul 23, 2026
12 checks passed
@dwolaver
dwolaver deleted the feature/RDKEMW-21898_uninitialized_scalar_variable branch July 23, 2026 19:16
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants