Skip to content
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

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

Conversation

overlookmotel
Copy link
Contributor

@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.

Copy link

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
Contributor 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
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
26 checks passed
@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