Re: [PATCH] read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
> +2020-02-02 Pádraig Brady > + > + read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX Looks good as well. Bruno
[PATCH] read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
On x86_64 with glibc-2.30, gcc 9.2 is giving: error: argument 2 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=] The details of this restriction are discussed at: https://stackoverflow.com/q/42574890/4421 * lib/read-file.c: s/SIZE_