Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Fix buffer overflow in UDPSender #395

Closed
wants to merge 1 commit into from

Conversation

mathieu-renard
Copy link

Buffer overflow fix

Which problem is this PR solving?

Resolves #382

Short description of the changes

Added a new function to flush with a pending span : add a new totalSpanBytes test before span push on flush end, if we have enough space we push the pending span to spans array, if not, we recursively call the new flushWithPendingSpan function.

That solved the problem for me, but maybe isn't the best way to do. No unit tests, it's just for code comparison.

Buffer overflow fix
@yurishkuro
Copy link
Member

can we reproduce the issue in the unit test?

@yurishkuro yurishkuro changed the title Update udp_sender.js Fix buffer overflow in UDPSender Sep 23, 2019
@ebergama
Copy link

Hi guys, any updates on this? It's happening also to me

@yurishkuro
Copy link
Member

Unfortunately, this is not in a state where it can be merged: no DCO, build is broken, and no unit tests.

Iuriy-Budnikov pushed a commit to agile-pm/jaeger-client-node that referenced this pull request Sep 25, 2021
* refactor: move Resource to @opentelemetry/sdk-base

Moves the Resource interface to the SDK level by creating a new packaged
called sdk-base. Also helps resolve the issue of shared objects between
the metrics and trace SDK.

* ftb

* bump version to 0.1.0
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.

UDP sender : Buffer overflow on flush end
3 participants