file: Fix types of the OFFSET and LIMIT arguments

Alexey Edelev requested to merge semlanik/cmake:fix_file_offset into master

OFFSET argument cannot handle offsets bigger than INT_MAX because of the atoi function, which is used to convert the argument string to integer. Same applies for the LIMIT argument. Use the steam based reading and 64-bit types to convert and store arguments to avoid invalid values stored in the corresponding variables.

Fixes: #23076 (closed)

Edited by Alexey Edelev

Merge request reports