Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[EXAMPLE] fix buffer overrun in the gRPC sample project #3304

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

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

lukeina2z
Copy link

Building the sample on Windows, the gRPC sample server/client app fails to function correctly. The propagated trace context is corrupted, containing garbage characters after the trace parent string.

The string buffer from gRPC cannot be safely treated as a null-terminated C-string. To ensure safe copying, we must use its length property instead.

Building the sample on Windows, the gRPC sample server/client app fails to function correctly. The propagated trace context is corrupted, containing garbage characters after the trace parent string.

The string buffer from gRPC cannot be safely treated as a null-terminated C-string. To ensure safe copying, we must use its length property instead.
@lukeina2z lukeina2z requested a review from a team as a code owner March 20, 2025 21:56
Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 9b9fbbe
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/67dc8ef26049dc0008ed613a

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.50%. Comparing base (d09bfba) to head (9b9fbbe).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3304      +/-   ##
==========================================
- Coverage   89.52%   89.50%   -0.01%     
==========================================
  Files         210      210              
  Lines        6522     6522              
==========================================
- Hits         5838     5837       -1     
- Misses        684      685       +1     

see 1 file with indirect coverage changes

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

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix.

@marcalff marcalff merged commit a57063f into open-telemetry:main Mar 20, 2025
58 checks passed
@marcalff marcalff changed the title fix: buffer overrun in the gRPC sample project [EXAMPLE] fix buffer overrun in the gRPC sample project Mar 27, 2025
@lukeina2z lukeina2z deleted the lk-pr-01 branch April 23, 2025 00:49
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