Comment by saagarjha

2 years ago

I open files that are larger than 4 GB from time to time, it’s not really reasonable to say that 32-bit is large enough for these kinds of things anymore. Well, let me rephrase: sometimes it’s ok to be “ok I don’t handle more than 4 billion (say this is a field to enter your name)” but there should also be a way to do it if I care enough, like when I’m writing a text editor.

FWIW I believe most implementations will do something safe on overflow like terminate the program or return some error (can printf signal via errno?)