tech-kern archive

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

Re: small changes in aesxcbcmac.c



Rhialto wrote:
> 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...

If understand the code correctly, ep points to the first byte past the
end which is well defined.

Alex

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index