Port-arm archive

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

Re: can not download IMAP messages with isync/mbsync



Martin Husemann <martin%duskware.de@localhost> writes:

> On Mon, Nov 14, 2022 at 08:17:32AM -0500, Greg Troxel wrote:
>> I am not arguing against fixing the code to be sane.   I am just raising
>> the other question about maybe strnlen needs fixing.
>
> "s + maxlen" (for most s) wraps around on 32bit architectures so the
> typical implementation will notice the current char * being >= that
> limit and claim we ran too far.

That's why it is harder to meet the spec than it first seems.   C
doesn't offer UB for such arguments, so it should be fixed.  (I'm not
asking anyone to do the work - just to agree it's broken.)

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index