Skip to content

Comments

fix(codegen): fix arithmetic overflow printing unspanned nodes#7292

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes
Nov 15, 2024
Merged

fix(codegen): fix arithmetic overflow printing unspanned nodes#7292
graphite-app[bot] merged 1 commit intomainfrom
11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 15, 2024

Similar to #7289. Check if span.end is 0 before doing span.end - 1, to prevent arithmetic overflow.

Also changed all checks to span.end > 0, just for consistency.

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 15, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the A-codegen Area - Code Generation label Nov 15, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the C-bug Category - Bug label Nov 15, 2024
@overlookmotel overlookmotel marked this pull request as ready for review November 15, 2024 11:11
@overlookmotel overlookmotel force-pushed the 11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes branch from ca974ad to 59484a8 Compare November 15, 2024 11:14
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 15, 2024

CodSpeed Performance Report

Merging #7292 will not alter performance

Comparing 11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes (a0766e6) with main (33ec4e6)

Summary

✅ 30 untouched benchmarks

@overlookmotel overlookmotel requested a review from Boshen November 15, 2024 11:22
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Nov 15, 2024
Copy link
Member

Boshen commented Nov 15, 2024

Merge activity

  • Nov 15, 10:59 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 15, 10:59 AM EST: A user added this pull request to the Graphite merge queue.
  • Nov 15, 11:10 AM EST: A user merged this pull request with the Graphite merge queue.

Boshen pushed a commit that referenced this pull request Nov 15, 2024
Similar to #7289. Check if `span.end` is 0 before doing `span.end - 1`, to prevent arithmetic overflow.

Also changed all checks to `span.end > 0`, just for consistency.
@Boshen Boshen force-pushed the 11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes branch from 59484a8 to 1a5e78a Compare November 15, 2024 16:00
Similar to #7289. Check if `span.end` is 0 before doing `span.end - 1`, to prevent arithmetic overflow.

Also changed all checks to `span.end > 0`, just for consistency.
@Boshen Boshen force-pushed the 11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes branch from 1a5e78a to a0766e6 Compare November 15, 2024 16:04
@graphite-app graphite-app bot merged commit a0766e6 into main Nov 15, 2024
@graphite-app graphite-app bot deleted the 11-15-fix_codegen_fix_arithmetic_overflow_printing_unspanned_nodes branch November 15, 2024 16:10
Dunqing pushed a commit that referenced this pull request Nov 17, 2024
Similar to #7289. Check if `span.end` is 0 before doing `span.end - 1`, to prevent arithmetic overflow.

Also changed all checks to `span.end > 0`, just for consistency.
Dunqing pushed a commit that referenced this pull request Nov 18, 2024
Similar to #7289. Check if `span.end` is 0 before doing `span.end - 1`, to prevent arithmetic overflow.

Also changed all checks to `span.end > 0`, just for consistency.
Dunqing pushed a commit that referenced this pull request Nov 18, 2024
Similar to #7289. Check if `span.end` is 0 before doing `span.end - 1`, to prevent arithmetic overflow.

Also changed all checks to `span.end > 0`, just for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-codegen Area - Code Generation C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants