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] stdlib-bsearch: middle element calculation may overflow


On 03/16/2017 09:17 AM, Paul Eggert wrote:
Mike Frysinger wrote:
do you a simple test case we can include ?

On x86-64 any such test would require more than 2**63 members in the
array. Not sure I'd want to run that....

It's impossible to write a test case for x86_64 because it's more like a 47-bit architecture.

Most of the array elements do not actually have to be present, so it should be possible to write a test on those architectures which can allocate more than half of the address space.

Thanks,
Florian


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