Correct me if I am wrong, but if the buffer size is set to the maximum of 2G, then this line will overflow and misbehave if the buffer is just below the limit and if bufferTop + size exceeds 2G, as all of these are int.
https://github.com/fmihpc/vlsv/blob/master/vlsv_writer.cpp#L788
Isn't it?
Correct me if I am wrong, but if the buffer size is set to the maximum of 2G, then this line will overflow and misbehave if the buffer is just below the limit and if
bufferTop + sizeexceeds 2G, as all of these are int.https://github.com/fmihpc/vlsv/blob/master/vlsv_writer.cpp#L788
Isn't it?