Source-Changes-D archive

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

Re: CVS commit: src




To: Alistair Crooks <agc%pkgsrc.org@localhost>

Subject: Re: CVS commit: src

From: Joerg Sonnenberger <joerg%bec.de@localhost>

Date: Sat, 6 Nov 2021 00:45:26 +0100


On Thu, Nov 04, 2021 at 06:17:20PM -0700, Alistair Crooks wrote:
> I think you're misreading the diff - it will only wrap if the minimum size
> is 0xffffffff, which is...ummm...highly unlikely (it's defined to be 0
> right now, the type is unsigned)

I'm not so much worried about the constant, but the right hand size.
Without looking at the types, I can't be sure that "context->pwdlen + 1"
doesn't overflow or that "context->m_cost - 1" can't underflow. Much
easier and safer to just use a type cast...

Joerg


Follow-Ups:

Re: CVS commit: src
From: Robert Elz

Re: CVS commit: src
From: Alistair Crooks


References:

Re: CVS commit: src
From: Joerg Sonnenberger

Re: CVS commit: src
From: Alistair Crooks




Prev by Date: Re: CVS commit: src

Next by Date: Re: CVS commit: src

Previous by Thread: Re: CVS commit: src

Next by Thread: Re: CVS commit: src

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index