Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std/file: use size_t instead of ulong for ReadFile on Windows
Since ReadFile requires an offset buffer and the maximum size is size_t.max, we should offset with size_t to avoid overflow on dereferencing. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
- Loading branch information