Skip to content

RDKEMW-15922: Coverity fix changes#29

Open
trupthi1403 wants to merge 1 commit into
developfrom
topic/RDKEMW-15922
Open

RDKEMW-15922: Coverity fix changes#29
trupthi1403 wants to merge 1 commit into
developfrom
topic/RDKEMW-15922

Conversation

@trupthi1403
Copy link
Copy Markdown
Contributor

Reason for change: Added coverity fix changes for
linux-expsync/westeros-linux-expsync.cpp, westeros-player.cpp, westeros-render-embedded.cpp, westeros-render-gl.cpp, westeros-test.cpp
Test Procedure: Refer Ticket
Risks: Medium
Priority: P2

Copilot AI review requested due to automatic review settings April 16, 2026 05:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 applies a set of Coverity-driven fixes across the westeros test/player apps and both GL/embedded renderers, primarily addressing type-safety, resource lifecycle, and file descriptor handling.

Changes:

  • Fix integer overflow/format issues in westeros-test.cpp (time calculation, printf specifiers) and add bounds checking for --delay.
  • Improve explicit-sync fence FD handling in both renderers and increase supported texture plane capacity (MAX_TEXTURES).
  • Clean up fast-path module lifetime in embedded renderer and simplify player control-file handling via remove().

Reviewed changes

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

Show a summary per file
File Description
westeros-test.cpp Safer time math, corrected logging format, and constrained --delay handling.
westeros-render-gl.cpp Increase texture plane capacity and avoid close(-1) by guarding fence handling.
westeros-render-embedded.cpp Increase texture plane capacity, prevent null deref in fast-path, and ensure dlclose() on teardown.
westeros-player.cpp Replace stat()+remove() polling with remove() as the existence/action check.
linux-expsync/westeros-linux-expsync.cpp Add <inttypes.h> to support PRI* format macros usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread westeros-test.cpp Outdated
Comment thread westeros-render-gl.cpp
Comment thread westeros-render-embedded.cpp
Comment thread westeros-test.cpp Outdated
Comment thread westeros-test.cpp Outdated
@trupthi1403 trupthi1403 changed the base branch from develop to main April 16, 2026 06:30
@trupthi1403 trupthi1403 changed the base branch from main to develop April 16, 2026 06:32
Copilot AI review requested due to automatic review settings April 28, 2026 08:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@trupthi1403 trupthi1403 force-pushed the topic/RDKEMW-15922 branch from 0578bc6 to 1ecd6c5 Compare June 1, 2026 11:17
@mrcomcast123
Copy link
Copy Markdown
Contributor

Changes look good to merge.

@sajnanazeer sajnanazeer self-requested a review June 2, 2026 06:53
Reason for change: Added coverity changes for
linux-expsync/westeros-linux-expsync.cpp, westeros-player.cpp,
westeros-render-embedded.cpp, westeros-render-gl.cpp, westeros-test.cpp
Test Procedure: Refer Ticket
Risks: Low
Priority: P2
Copilot AI review requested due to automatic review settings June 2, 2026 12:38
@trupthi1403 trupthi1403 force-pushed the topic/RDKEMW-15922 branch from 1ecd6c5 to 99ab2f4 Compare June 2, 2026 12:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread westeros-test.cpp
delay= v;
printf("using delay=%d\n", delay );
}
else if ( v >= 1000000 )
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.

3 participants