fileio: if we try to read a file larger than SIZE_MAX this is not a problem if a...
authorLennart Poettering <lennart@poettering.net>
Fri, 21 May 2021 14:30:52 +0000 (16:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 May 2021 19:54:19 +0000 (21:54 +0200)
commit1b5e91a8d217bef68d6b2b4244e6ace354898a99
tree1177d230bfe7925203c0feedcc1d1430d26251bc
parent05576809194754989f88f83c7104341c35944546
fileio: if we try to read a file larger than SIZE_MAX this is not a problem if a max_size is specified

i.e. 32bit userspace reading /proc/kcore on a 64bit kernel with max_size
should not needlessly fail.
src/basic/fileio.c