Skip to content

To Fix ArrayIndexOutOfBoundsException in for VALID_HEX array in OtelEncodingUtils - #8748

Open
NithinU2802 wants to merge 1 commit into
open-telemetry:mainfrom
NithinU2802:fix/validhexa-size
Open

To Fix ArrayIndexOutOfBoundsException in for VALID_HEX array in OtelEncodingUtils#8748
NithinU2802 wants to merge 1 commit into
open-telemetry:mainfrom
NithinU2802:fix/validhexa-size

Conversation

@NithinU2802

Copy link
Copy Markdown
Contributor

This PR fixes an issue caused by the VALID_HEX array. If we pass Character.MAX_VALUE, it throws an ArrayIndexOutOfBoundsException instead of returning false, so I updated the size from Character.MAX_VALUE to Character.MAX_VALUE + 1. I believe this is a valid issue, please let me know if any changes are required, I’ll be happy to update it accordingly.

@NithinU2802
NithinU2802 requested a review from a team as a code owner August 27, 2026 12:18
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.29%. Comparing base (e2efec5) to head (b60384e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8748   +/-   ##
=========================================
  Coverage     91.29%   91.29%           
  Complexity    10498    10498           
=========================================
  Files          1006     1006           
  Lines         28338    28338           
  Branches       3581     3581           
=========================================
+ Hits          25870    25872    +2     
  Misses         1675     1675           
+ Partials        793      791    -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 27, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-09-02 14:35 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

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.

1 participant