tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: small changes in aesxcbcmac.c



On Sun 25 Sep 2016 at 22:01:16 +0100, Alexander Nasonov wrote:
> -	while (addr + AES_BLOCKSIZE < ep) {
> +	while (ep - addr > AES_BLOCKSIZE) {

I think that if ep points beyond tbe buffer (apart from the
just-past-the-end location), the subtraction is just as undefined
behaviour as before...

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/xs4all.nl    -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index