sprof: check pread size and offset for overflow
Paul Eggert
eggert@cs.ucla.edu
Thu Oct 16 16:16:18 GMT 2025
On 2025-10-15 18:53, Collin Funk wrote:
> glibc copies intprops.h from Gnulib, which has INT_ADD_WRAPV, but that
> is just __builtin_add_overflow on all compilers glibc supports. CC'ed
> Paul who can correct me if I am wrong.
You're right.
We could change glibc to use C23-style ckd_add, by adapting Gnulib's
stdckdint.h machinery to glibc. (It uses intprops.h.)
More information about the Libc-alpha
mailing list