julia
306124c0 - Fix integer overflow in `skip(s::IOBuffer, typemax(Int64))` (#54070)

Commit
1 year ago
Fix integer overflow in `skip(s::IOBuffer, typemax(Int64))` (#54070) Fixes #53908 by clamping before doing addition. This also fixes an issue with negative skips if `io.offset` isn't zero. I am assuming that `io.size+1` cannot overflow.
Author
Parents
Loading