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

test_l2_tvSettings_SetAndGetDolbyVisionMode loop accesses out-of-bounds index due to incorrect condition i <= getcount, causing VTS failures. #69

Closed
Anbukannadhasan opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Anbukannadhasan
Copy link
Contributor

Problem/Opportunity

In the test_l2_tvSettings_SetAndGetDolbyVisionMode test case, the loop iterates up to getcount using the condition i <= getcount. Since the loop starts from 0, this results in the last iteration attempting to access an out-of-bounds index in the dvModes array, leading to garbage value access and VTS test failures.

Steps to reproduce

No response

Expected Behavior

The loop in test_l2_tvSettings_SetAndGetDolbyVisionMode should iterate within valid bounds of the dvModes array (from index 0 to getcount - 1), ensuring no out-of-bounds access.

Actual Behavior

The loop iterates up to getcount (using the condition i <= getcount), resulting in the last iteration accessing an out-of-bounds index, causing garbage value access and VTS test failures.

Notes (Optional)

No response

@Anbukannadhasan Anbukannadhasan added the bug Something isn't working label Jan 27, 2025
@Anbukannadhasan Anbukannadhasan self-assigned this Jan 27, 2025
hari22yuva added a commit that referenced this issue Jan 29, 2025
…Vision

gh #69 test_l2_tvSettings_SetAndGetDolbyVisionMode loop accesses out-of-bounds index due to incorrect condition i <= getcount, causing VTS failures.
@Anbukannadhasan
Copy link
Contributor Author

Already closed with the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Resolved
Development

No branches or pull requests

1 participant