Skip to content

Fixing cufile on windows#473

Merged
chelsea0x3b merged 3 commits into
mainfrom
cufile-windows
Oct 29, 2025
Merged

Fixing cufile on windows#473
chelsea0x3b merged 3 commits into
mainfrom
cufile-windows

Conversation

@chelsea0x3b

Copy link
Copy Markdown
Owner

No description provided.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request aims to fix cufile on Windows. The changes in src/cufile/result.rs introduce explicit casts to fix compilation errors, but this can lead to silent data truncation for large file offsets on Windows, which is a critical issue. I've provided suggestions to use checked conversions to prevent potential data corruption. The change in src/cufile/safe.rs correctly fixes a compilation issue in unreachable code and looks good.

Comment thread src/cufile/result.rs Outdated
Comment thread src/cufile/result.rs Outdated
@chelsea0x3b chelsea0x3b merged commit 285417d into main Oct 29, 2025
33 checks passed
@chelsea0x3b chelsea0x3b deleted the cufile-windows branch October 29, 2025 13:41
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