Skip to content

IO#seek and tell do not properly handle offsets larger than int32 #3817

@headius

Description

@headius

Environment

JRuby 9.1

Expected Behavior

IO#seek and IO#tell should handle offsets larger than int32 range

Actual Behavior

As seen in #3435, we were not handling the return value of lseek properly, interpreting all negative values as error rather than just -1. That was fixed, but the larger issue is that our native lseek and much of the code that calls it only supports int32 range.

I have a commit coming shortly to fix the main #3435 issue, but this large problem needs to be addressed after 9.1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions