Skip to content

fix: prevent torch checkpoint offset overflow - #1832

Merged
leejet merged 1 commit into
masterfrom
fix/torch-checkpoint-offset-overflow
Jul 29, 2026
Merged

fix: prevent torch checkpoint offset overflow#1832
leejet merged 1 commit into
masterfrom
fix/torch-checkpoint-offset-overflow

Conversation

@leejet

@leejet leejet commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reject negative or overflowing PyTorch checkpoint storage sizes, tensor offsets, and tensor layouts.
  • Replace wrap-prone storage bounds checks with overflow-safe subtraction checks for zip and legacy checkpoints.
  • Revalidate zip entry bounds immediately before copying tensor data and propagate entry read failures.

Related Issue / Discussion

N/A

Additional Information

N/A

Checklist

@leejet
leejet merged commit e92e86f into master Jul 29, 2026
9 checks passed
@leejet
leejet deleted the fix/torch-checkpoint-offset-overflow branch July 30, 2026 14:45
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.

1 participant