Skip to content

offset overflow on 32-bit systems #8

@williambrode

Description

@williambrode

Working with the code I noticed this:

type Chunker struct {
...
	offset int

Where offset is tracking the offset of this chunk inside the file. On a 32-bit system, offset would be limited to 2GB and would then overflow. This is problematic when dealing with large files. offset should be an int64 to prevent this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions