This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ 20628] make mallinfo saturating


Paul Eggert <eggert@cs.ucla.edu> writes:
> These don't look right, as INTERNAL_SIZE_T might not be wider than int, 

In which case, the values we're adding up won't overflow because memory
is limited to an int-sized address space.

> Also, if SUM is INT_MIN

"Assumes ADD and SUM are positive."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]