NetBSD-Users archive

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

Re: can not download IMAP messages with isync/mbsync



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.

Martin


Home | Main Index | Thread Index | Old Index