Potential offset overflow on 32-bit
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#738956)
Description
VTE uses gsize for the ever-increasing logical byte offset in the ring/stream/etc. This overflows after printing ~25M lines of 80 characters which is not an unreasonably extreme scenario, vte can process this much data in about 15 minutes. Buggy behavior is bound to happen (although I haven't tested) both in memory, and in the scrollback file with infinite scrollback.
We should #define _FILE_OFFSET_BITS 64, s/gsize/off_t, s/fseek/fseeko, maybe some compiletime/runtime assertions on these sizes -- what else?
Preferably not just for byte offsets but also for line offsets (insert_delta/scroll_delta etc.).
Version: 0.38.x