[PATCH] xdr_array and calloc security fix
Ulrich Drepper
drepper@redhat.com
Fri Aug 2 02:43:00 GMT 2002
Wolfram Gloger wrote:
> Do we already have some system-specific mechanism to detect the rare
> overflow case for a 32bit-multiplication without having to perform a
> division?
It should be possible to have something like
((a | b) > (a * b))
for unsigned values. I'm not 100% sure, though.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list