Skip to content

Fix signature size check in ModifyLocalSig#5921

Merged
kevingosse merged 1 commit into
masterfrom
kevin/unsigned
Aug 22, 2024
Merged

Fix signature size check in ModifyLocalSig#5921
kevingosse merged 1 commit into
masterfrom
kevin/unsigned

Conversation

@kevingosse

@kevingosse kevingosse commented Aug 20, 2024

Copy link
Copy Markdown
Contributor

Summary of changes

Fix signature size check in ModifyLocalSig.

Reason for change

Detected by static analysis.

Implementation details

Because originalSignatureSize and len are unsigned, their subtraction is unsigned and thus can't be negative.

@kevingosse
kevingosse requested a review from a team as a code owner August 20, 2024 16:32
@datadog-ddstaging

datadog-ddstaging Bot commented Aug 20, 2024

Copy link
Copy Markdown

Datadog Report

Branch report: kevin/unsigned
Commit report: c662cc2
Test service: dd-trace-dotnet

✅ 0 Failed, 356383 Passed, 2267 Skipped, 23h 16m 37.93s Total Time

@andrewlock

Copy link
Copy Markdown
Member

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing the following branches/commits:

Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

@dromanol dromanol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@kevingosse
kevingosse merged commit b2ac1cf into master Aug 22, 2024
@kevingosse
kevingosse deleted the kevin/unsigned branch August 22, 2024 14:12
@github-actions github-actions Bot added this to the vNext-v3 milestone Aug 22, 2024
andrewlock pushed a commit that referenced this pull request Aug 23, 2024
## Summary of changes

Fix signature size check in `ModifyLocalSig`.

## Reason for change

Detected by static analysis.

## Implementation details

Because `originalSignatureSize` and `len` are unsigned, their
subtraction is unsigned and thus can't be negative.
@andrewlock andrewlock added the area:native-library Automatic instrumentation native C++ code (Datadog.Trace.ClrProfiler.Native) label Aug 23, 2024
andrewlock added a commit that referenced this pull request Aug 23, 2024
## Summary of changes

Fix signature size check in `ModifyLocalSig`.

## Reason for change

Detected by static analysis.

## Implementation details

Because `originalSignatureSize` and `len` are unsigned, their
subtraction is unsigned and thus can't be negative.

## Other details

Backport of #5921

Co-authored-by: Kevin Gosse <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:native-library Automatic instrumentation native C++ code (Datadog.Trace.ClrProfiler.Native)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants