Re: Fwd: report 3/3: latent unterminated buffer in imap_wordcasecmp()
"Kevin J. McCarthy" <[email protected]> Thu, 18 Jun 2026 08:19:49 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 18, 2026 at 08:09:17AM +0800, Kevin J. McCarthy wrote: >----- Forwarded message from Acts1631 <[email protected]> ----- >From: Acts1631 <[email protected]> >Since Capabilities[x] elements are short fixed strings (e.g., >"IMAP4rev1", "CONDSTORE"), ascii_strcasecmp() will return before >reading the uninitialized tmp[126] byte. However, the helper is buggy >in isolation. This basically sums it up. The comparison function is buggy, but since mutt controls the list of compared strings we won't hit the bug. I don't want to accept an AI rewrite just before 2.4.0, so I'll try to look for alternative fixes. Or if any of you want to take a look and propose a minimal fix for before I get to it, that would be great too. Thanks. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmozOaUACgkQre92hIAx a9r4ZQ/8CqvcfvKsN9bdrc8v3uclzLEKpwixZ5dvxKMEd77CAoxbt19IgIOZMtLI 7wUcppvDfJoI7kMN2Xzs1qs3zZ889pyt2sVeuVlEWj+0AfQU6FWzen5sRkIV9RmE rLuODJ1hAEendAF8rQNh1he16zD3MxHJWYasl8dg+hKv383o0KjPa1LDGIlgJrRD c/9z2RphXH7eCcrvM5fjLDYOyVniJ48wMUorIIOyeq/DW4oM8Y9T452W8Dt5XuJl DVKIaGU31HiLsn82oAk4PUxo1/WIAmqAsiaHaPgvmDyM+iVcxpmTZ7W5/Xl8xfW7 i+AXKNH+EuSpf6dMziAJJ3rGOQdcXVumgNZr2MmWBBd4VVqkCm2Jm6daepELHUqd +YANzMWJLdwj/xaSOU3v/kYb3a9w9OWlkNsqCpzizEW8zoMtVPvfpDai0bMmrvZo SPq800kHZfyPMbXyQDQWz9ERz/LTTaEFx4kWd1AdqQfyGs9Z0bGSEC0i7qhPTKpK aMMI2Hz0XsLpJbYat8TOXg1D330UGyeUv8Pjc1tk8gEnJsjmTkIv55a8eoYEPURJ B8F+OmSAjPtC/oU3BOnnt0myFJxkP2Rijrqc0QzcY3MonMy4i72X82ds4k/1yfRF JDiNuIEKr1wGd/OJ2Xx9JIFCAFqqoQw/zrLbDVG/oegk/bPKedY= =rcYg -----END PGP SIGNATURE-----